Skip to content

Commit

Permalink
increase gas limit for minting erc20 token
Browse files Browse the repository at this point in the history
  • Loading branch information
pirtleshell committed Feb 12, 2024
1 parent af6ee81 commit f838046
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions contract/tasks/mintERC20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,12 @@ export async function main(

const erc20 = erc20Factory.attach(args.contractAddress);

const mintTx = await erc20.mint(args.to, args.amount);
const mintTx = await erc20.mint(args.to, args.amount, {
gasLimit: 100000,
});
await mintTx.wait();

console.log(`minted ${args.amount} tokens to ${args.to}`);
console.log(
`minted ${args.amount} tokens to ${args.to} (txhash=${mintTx.hash})`
);
}

0 comments on commit f838046

Please sign in to comment.