File tree Expand file tree Collapse file tree 1 file changed +15
-28
lines changed Expand file tree Collapse file tree 1 file changed +15
-28
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ dotenv.config()
10
10
const mnemnoc =
11
11
typeof process . env . MNEMONIC === 'undefined' ? '' : process . env . MNEMONIC
12
12
13
- const privateKey =
14
- typeof process . env . PRIVATE_KEY === 'undefined' ? '' : process . env . PRIVATE_KEY
15
-
16
13
const config : HardhatUserConfig = {
17
14
solidity : {
18
15
compilers : [
@@ -39,44 +36,34 @@ const config: HardhatUserConfig = {
39
36
networks : {
40
37
mainnet : {
41
38
url : `https://mainnet.infura.io/v3/${ process . env . INFURA_KEY ! } ` ,
42
- accounts : mnemnoc
43
- ? {
44
- mnemonic : mnemnoc ,
45
- }
46
- : [ privateKey ] ,
39
+ accounts : {
40
+ mnemonic : mnemnoc ,
41
+ } ,
47
42
} ,
48
43
arbitrumOne : {
49
44
url : `https://arbitrum-mainnet.infura.io/v3/${ process . env . INFURA_KEY ! } ` ,
50
- accounts : mnemnoc
51
- ? {
52
- mnemonic : mnemnoc ,
53
- }
54
- : [ privateKey ] ,
45
+ accounts : {
46
+ mnemonic : mnemnoc ,
47
+ } ,
55
48
} ,
56
49
arbitrumRinkeby : {
57
50
url : `https://arbitrum-rinkeby.infura.io/v3/${ process . env . INFURA_KEY ! } ` ,
58
- accounts : mnemnoc
59
- ? {
60
- mnemonic : mnemnoc ,
61
- }
62
- : [ privateKey ] ,
51
+ accounts : {
52
+ mnemonic : mnemnoc ,
53
+ } ,
63
54
} ,
64
55
polygonMainnet : {
65
56
url : `https://polygon-mainnet.infura.io/v3/${ process . env . INFURA_KEY ! } ` ,
66
- accounts : mnemnoc
67
- ? {
68
- mnemonic : mnemnoc ,
69
- }
70
- : [ privateKey ] ,
57
+ accounts : {
58
+ mnemonic : mnemnoc ,
59
+ } ,
71
60
} ,
72
61
polygonMumbai : {
73
62
url : `https://polygon-mumbai.g.alchemy.com/v2/${ process . env
74
63
. ALCHEMY_API_KEY ! } `,
75
- accounts : mnemnoc
76
- ? {
77
- mnemonic : mnemnoc ,
78
- }
79
- : [ privateKey ] ,
64
+ accounts : {
65
+ mnemonic : mnemnoc ,
66
+ } ,
80
67
} ,
81
68
} ,
82
69
etherscan : {
You can’t perform that action at this time.
0 commit comments