@@ -3,12 +3,9 @@ const fs = require('fs');
3
3
require ( 'dotenv' ) . config ( ) ;
4
4
5
5
6
+ const PRIVATE_KEY = process . env . PRIVATE_KEY ;
6
7
const defaultNetwork = 'localhost' ;
7
8
8
- function mnemonic ( ) {
9
- return process . env . PRIVATE_KEY ;
10
- }
11
-
12
9
// You need to export an object to set up your config
13
10
// Go to https://hardhat.org/config/ to learn more
14
11
module . exports = {
@@ -25,19 +22,19 @@ module.exports = {
25
22
} ,
26
23
rinkeby : {
27
24
url : 'https://rinkeby.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
28
- accounts : [ mnemonic ( ) ] ,
25
+ accounts : [ PRIVATE_KEY ] ,
29
26
} ,
30
27
kovan : {
31
28
url : 'https://kovan.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
32
- accounts : [ mnemonic ( ) ] ,
29
+ accounts : [ PRIVATE_KEY ] ,
33
30
} ,
34
31
mainnet : {
35
32
url : 'https://mainnet.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
36
- accounts : [ mnemonic ( ) ] ,
33
+ accounts : [ PRIVATE_KEY ] ,
37
34
} ,
38
35
ropsten : {
39
36
url : 'https://ropsten.infura.io/v3/' + process . env . INFURA_ID , //<---- YOUR INFURA ID! (or it won't work)
40
- accounts : [ mnemonic ( ) ] ,
37
+ accounts : [ PRIVATE_KEY ] ,
41
38
} ,
42
39
} ,
43
40
} ;
0 commit comments