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()
1010const mnemnoc =
1111 typeof process . env . MNEMONIC === 'undefined' ? '' : process . env . MNEMONIC
1212
13- const privateKey =
14- typeof process . env . PRIVATE_KEY === 'undefined' ? '' : process . env . PRIVATE_KEY
15-
1613const config : HardhatUserConfig = {
1714 solidity : {
1815 compilers : [
@@ -39,44 +36,34 @@ const config: HardhatUserConfig = {
3936 networks : {
4037 mainnet : {
4138 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+ } ,
4742 } ,
4843 arbitrumOne : {
4944 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+ } ,
5548 } ,
5649 arbitrumRinkeby : {
5750 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+ } ,
6354 } ,
6455 polygonMainnet : {
6556 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+ } ,
7160 } ,
7261 polygonMumbai : {
7362 url : `https://polygon-mumbai.g.alchemy.com/v2/${ process . env
7463 . ALCHEMY_API_KEY ! } `,
75- accounts : mnemnoc
76- ? {
77- mnemonic : mnemnoc ,
78- }
79- : [ privateKey ] ,
64+ accounts : {
65+ mnemonic : mnemnoc ,
66+ } ,
8067 } ,
8168 } ,
8269 etherscan : {
You can’t perform that action at this time.
0 commit comments