From 67380c110f4a6421ca4b368c72b5e6ff9c805da3 Mon Sep 17 00:00:00 2001 From: platocrat <37757724+platocrat@users.noreply.github.com> Date: Tue, 4 May 2021 18:37:22 -0700 Subject: [PATCH] fix: remove hardcoded gasPrice and gasLimit (#753) --- examples/hardhat/deploy/ERC20.deploy.js | 2 -- examples/hardhat/test/erc20.test.js | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/examples/hardhat/deploy/ERC20.deploy.js b/examples/hardhat/deploy/ERC20.deploy.js index 6023f53d8fd9..0f6423637f17 100644 --- a/examples/hardhat/deploy/ERC20.deploy.js +++ b/examples/hardhat/deploy/ERC20.deploy.js @@ -10,8 +10,6 @@ const func = async (hre) => { await deploy('ERC20', { from: deployer, args: [initialSupply, name], - gasPrice: hre.ethers.BigNumber.from('0'), - gasLimit: 8999999, log: true }) } diff --git a/examples/hardhat/test/erc20.test.js b/examples/hardhat/test/erc20.test.js index e3e2141c5aa2..ffae27d24f89 100644 --- a/examples/hardhat/test/erc20.test.js +++ b/examples/hardhat/test/erc20.test.js @@ -18,7 +18,7 @@ describe(`ERC20`, () => { const Factory__ERC20 = await ethers.getContractFactory('ERC20') ERC20 = await Factory__ERC20.connect(account1).deploy( INITIAL_SUPPLY, - TOKEN_NAME, + TOKEN_NAME ) await ERC20.deployTransaction.wait()