File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,9 @@ module.exports = {
57
57
// rinkeby 测试网络
58
58
rinkeby: {
59
59
// 请将 INFURA_ID 替换成你自己的
60
- url: ' https://rinkeby.infura.io/v3/{INFURA_ID}' ,
60
+ // url: 'https://rinkeby.infura.io/v3/{INFURA_ID}',
61
+ url: ' https://rinkeby.infura.io/v3/' + process .env .INFURA_ID , // <---- 在.env文件中配置自己的INFURA_ID
62
+
61
63
// 填写测试账户的私钥,可填写多个
62
64
accounts: [privateKey1, privateKey2, ... ]
63
65
}
Original file line number Diff line number Diff line change @@ -30,23 +30,23 @@ module.exports = {
30
30
*/
31
31
} ,
32
32
rinkeby : {
33
- url : 'https://rinkeby.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
33
+ url : 'https://rinkeby.infura.io/v3/' + process . env . INFURA_ID , //<---- CONFIG YOUR INFURA ID IN .ENV ! (or it won't work)
34
34
accounts : [ mnemonic ( ) ] ,
35
35
} ,
36
36
kovan : {
37
- url : 'https://kovan.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
37
+ url : 'https://kovan.infura.io/v3/' + process . env . INFURA_ID , //<---- CONFIG YOUR INFURA ID IN .ENV ! (or it won't work)
38
38
accounts : [ mnemonic ( ) ] ,
39
39
} ,
40
40
mainnet : {
41
- url : 'https://mainnet.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
41
+ url : 'https://mainnet.infura.io/v3/' + process . env . INFURA_ID , //<---- CONFIG YOUR INFURA ID IN .ENV ! (or it won't work)
42
42
accounts : [ mnemonic ( ) ] ,
43
43
} ,
44
44
ropsten : {
45
- url : 'https://ropsten.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
45
+ url : 'https://ropsten.infura.io/v3/' + process . env . INFURA_ID , //<---- CONFIG YOUR INFURA ID IN .ENV ! (or it won't work)
46
46
accounts : [ mnemonic ( ) ] ,
47
47
} ,
48
48
matic : {
49
- url : 'https://polygon-mainnet.infura.io/v3/' + process . env . PROJECT_ID ,
49
+ url : 'https://polygon-mainnet.infura.io/v3/' + process . env . PROJECT_ID , //<---- CONFIG YOUR INFURA ID IN .ENV! (or it won't work)
50
50
accounts : [ mnemonic ( ) ]
51
51
} ,
52
52
} ,
Original file line number Diff line number Diff line change 16
16
"dotenv" : " ^10.0.0" ,
17
17
"ethereum-waffle" : " ^3.4.0" ,
18
18
"ethers" : " ^5.4.7" ,
19
- "hardhat" : " ^2.6.4 " ,
19
+ "hardhat" : " ^2.9.0 " ,
20
20
"sol-merger" : " ^3.1.0"
21
21
},
22
22
"dependencies" : {
You can’t perform that action at this time.
0 commit comments