Skip to content

Commit ed0f8de

Browse files
committed
add gas options for polygon mainnet
1 parent b3445b2 commit ed0f8de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hardhat.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import '@nomiclabs/hardhat-waffle'
55
import '@nomiclabs/hardhat-etherscan'
66
import '@openzeppelin/hardhat-upgrades'
77
import type { HardhatUserConfig } from 'hardhat/config'
8+
import { utils } from 'ethers'
89

910
dotenv.config()
1011

@@ -58,6 +59,8 @@ const config: HardhatUserConfig = {
5859
accounts: {
5960
mnemonic: mnemnoc,
6061
},
62+
gas: 3000000,
63+
gasPrice: utils.parseUnits('130', 'gwei').toNumber(),
6164
},
6265
polygonMumbai: {
6366
url: `https://polygon-mumbai.g.alchemy.com/v2/${process.env

0 commit comments

Comments
 (0)