-
Notifications
You must be signed in to change notification settings - Fork 3
/
truffle-config.js
42 lines (39 loc) · 926 Bytes
/
truffle-config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var HDWalletProvider = require("truffle-hdwallet-provider");
const MNEMONIC = "";
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*"
},
ropsten: {
provider: function() {
return new HDWalletProvider(
MNEMONIC,
"https://ropsten.infura.io/v3/175ce051e4634ce7bdfefe78c35a5bb4"
);
},
network_id: 3,
gas: 7000000
//make sure this gas allocation isn't over 4M, which is the max
},
rinkeby: {
provider: function() {
return new HDWalletProvider(
MNEMONIC,
"https://rinkeby.infura.io/v3/175ce051e4634ce7bdfefe78c35a5bb4"
);
},
network_id: 4,
gas: 7000000
//make sure this gas allocation isn't over 4M, which is the max
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}
};