mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
update hardhat.config
This commit is contained in:
parent
6965116993
commit
6f67400b62
|
@ -41,17 +41,17 @@ const mnemonic =
|
|||
"test test test test test test test test test test test junk";
|
||||
|
||||
const networkGasPriceConfig: Record<string, Number> = {
|
||||
"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
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user