@@ -2,8 +2,11 @@ require("@nomiclabs/hardhat-waffle");
22require ( "@nomiclabs/hardhat-etherscan" ) ;
33require ( '@openzeppelin/hardhat-upgrades' ) ;
44// require("hardhat-gas-reporter");
5+ const requireOrMock = require ( 'require-or-mock' )
56
6- let env = require ( './env.json' ) ;
7+ let env = requireOrMock ( 'env.js' , {
8+
9+ } ) ;
710
811if ( process . env . GAS_REPORT === 'yes' ) {
912 require ( "hardhat-gas-reporter" ) ;
@@ -48,11 +51,11 @@ module.exports = {
4851 } ,
4952 rinkeby : {
5053 url : `https://rinkeby.infura.io/v3/${ env . infuraApiKey } ` ,
51- accounts : [ env . privateKey ]
54+ accounts : [ env . privateKeyTestnet ]
5255 } ,
5356 goerli : {
5457 url : `https://goerli.infura.io/v3/${ env . infuraApiKey } ` ,
55- accounts : [ env . privateKey ]
58+ accounts : [ env . privateKeyTestnet ]
5659 } ,
5760 ethereum : {
5861 url : `https://mainnet.infura.io/v3/${ env . infuraApiKey } ` ,
@@ -62,19 +65,19 @@ module.exports = {
6265 url : "https://data-seed-prebsc-1-s1.binance.org:8545" ,
6366 chainId : 97 ,
6467 gasPrice : 20000000000 ,
65- accounts : [ env . privateKey ]
68+ accounts : [ env . privateKeyTestnet ]
6669 } ,
6770 bsc : {
68- url : "https://bsc-dataseed.binance.org/ " ,
71+ url : "https://bsc-dataseed.binance.org" ,
6972 chainId : 56 ,
7073 gasPrice : 20000000000 ,
7174 accounts : [ env . privateKey ]
7275 } ,
7376 mumbai : {
74- url : 'https://rpc-mumbai.maticvigil.com ' ,
77+ url : 'https://rpc-mumbai.matic.today ' ,
7578 chainId : 80001 ,
7679 gasPrice : 20000000000 ,
77- accounts : [ env . privateKey ]
80+ accounts : [ env . privateKeyTestnet ]
7881 } ,
7982 matic : {
8083 url : `https://rpc-mainnet.maticvigil.com/v1/${ env . maticvigilKey } ` ,
0 commit comments