From 8f8e161ad72207659000265b35369694cd2722a5 Mon Sep 17 00:00:00 2001 From: Robert Pirtle Date: Mon, 12 Feb 2024 12:53:16 -0800 Subject: [PATCH] increase gas limit for minting erc20 token --- contract/tasks/mintERC20.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/contract/tasks/mintERC20.ts b/contract/tasks/mintERC20.ts index 47d2b4d..4d88e5f 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, { + gasPrice: 50000, + }); await mintTx.wait(); - console.log(`minted ${args.amount} tokens to ${args.to}`); + console.log( + `minted ${args.amount} tokens to ${args.to} (txhash=${mintTx.hash})` + ); }