From 6f67400b626219d8387b0c4f29388b115474181a Mon Sep 17 00:00:00 2001 From: pk1411 Date: Fri, 4 Mar 2022 10:25:08 +0530 Subject: [PATCH] update hardhat.config --- hardhat.config.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hardhat.config.ts b/hardhat.config.ts index 62f019f4..9afbcf4b 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -41,17 +41,17 @@ const mnemonic = "test test test test test test test test test test test junk"; const networkGasPriceConfig: Record = { - "mainnet": 160000000000, - "polygon": 50000000000, - "avalanche": 50000000000, - "arbitrum": 2000000000 + "mainnet": 160, + "polygon": 50, + "avalanche": 25, + "arbitrum":1, } function createConfig(network: string) { return { url: getNetworkUrl(network), accounts: !!PRIVATE_KEY ? [`0x${PRIVATE_KEY}`] : { mnemonic }, - // gasPrice: 1000000, // 0.0001 GWEI + gasPrice: Number(networkGasPriceConfig[network])*1e9, // 0.0001 GWEI }; } @@ -109,7 +109,7 @@ const config: HardhatUserConfig = { avalanche: createConfig("avalanche"), arbitrum: createConfig("arbitrum"), optimism: createConfig("optimism"), - }, + }, paths: { artifacts: "./artifacts", cache: "./cache",