@@ -19,27 +19,28 @@ usePlugin("solidity-coverage");
1919} ) ;
2020
2121const DEFAULT_BLOCK_GAS_LIMIT = 12500000 ;
22- const DEFAULT_GAS_PRICE = 1 ;
22+ const DEFAULT_GAS_PRICE = 50000000000 ; // 50 gwei
2323const HARDFORK = "istanbul" ;
2424const INFURA_KEY = process . env . INFURA_KEY || "" ;
2525const ETHERSCAN_KEY = process . env . ETHERSCAN_KEY || "" ;
2626const MNEMONIC_PATH = "m/44'/60'/0'/0" ;
2727const MNEMONICS : { [ network : string ] : string } = {
28- [ eEthereumNetwork . kovan ] : process . env . MNEMONIC_KOVAN || "" ,
29- [ eEthereumNetwork . ropsten ] : process . env . MNEMONIC_ROPSTEN || "" ,
30- [ eEthereumNetwork . main ] : process . env . MNEMONIC_MAIN || "" ,
28+ [ eEthereumNetwork . kovan ] : process . env . MNEMONIC || "" ,
29+ [ eEthereumNetwork . ropsten ] : process . env . MNEMONIC || "" ,
30+ [ eEthereumNetwork . main ] : process . env . MNEMONIC || "" ,
3131} ;
3232
3333const getCommonNetworkConfig = (
3434 networkName : eEthereumNetwork ,
3535 networkId : number
3636) => {
3737 return {
38- url : `https://${ networkName } .infura.io/v3/${ INFURA_KEY } ` ,
38+ url : `https://${
39+ networkName == "main" ? `${ networkName } net` : networkName
40+ } .infura.io/v3/${ INFURA_KEY } `,
3941 hardfork : HARDFORK ,
4042 blockGasLimit : DEFAULT_BLOCK_GAS_LIMIT ,
4143 gasPrice : 4000000000 ,
42- gasMultiplier : DEFAULT_GAS_PRICE ,
4344 chainId : networkId ,
4445 accounts : {
4546 mnemonic : MNEMONICS [ networkName ] ,
@@ -75,7 +76,7 @@ const config: BuidlerConfig = {
7576 hardfork : "istanbul" ,
7677 blockGasLimit : DEFAULT_BLOCK_GAS_LIMIT ,
7778 gas : DEFAULT_BLOCK_GAS_LIMIT ,
78- gasPrice : 8000000000 ,
79+ gasPrice : DEFAULT_GAS_PRICE ,
7980 chainId : BUIDLEREVM_CHAINID ,
8081 throwOnTransactionFailures : true ,
8182 throwOnCallFailures : true ,
0 commit comments