Skip to content

Commit

Permalink
increase gas limit for deploying erc20 token
Browse files Browse the repository at this point in the history
  • Loading branch information
pirtleshell committed Feb 12, 2024
1 parent e834d96 commit 939c674
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contract/tasks/deployERC20.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: 1000000,
});

await erc20.deployed();

Expand Down

0 comments on commit 939c674

Please sign in to comment.