From af6ee8187946db4327a98eb008f58a60867bd6e1 Mon Sep 17 00:00:00 2001 From: Robert Pirtle Date: Mon, 12 Feb 2024 12:14:12 -0800 Subject: [PATCH] increase gas limit for deploying erc20 token --- contract/tasks/deployERC20.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contract/tasks/deployERC20.ts b/contract/tasks/deployERC20.ts index 0a6b3af..a1dab55 100644 --- a/contract/tasks/deployERC20.ts +++ b/contract/tasks/deployERC20.ts @@ -53,7 +53,11 @@ export async function deployErc20( const erc20Factory = await hre.ethers.getContractFactory( "ERC20MintableBurnable" ); - const erc20 = await erc20Factory.deploy(name, symbol, decimals); + const erc20 = await erc20Factory.deploy(name, symbol, decimals, { + // increase estimated gas to prevent some finnicky CI failures + // estimated gas is ~200k + gasLimit: 2000000, + }); await erc20.deployed();