diff --git a/contract/tasks/mintERC20.ts b/contract/tasks/mintERC20.ts index 47d2b4d..0aea07f 100644 --- a/contract/tasks/mintERC20.ts +++ b/contract/tasks/mintERC20.ts @@ -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})` + ); }