-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtruffle.js
More file actions
41 lines (39 loc) · 962 Bytes
/
truffle.js
File metadata and controls
41 lines (39 loc) · 962 Bytes
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
require('babel-register');
require('babel-polyfill');
var HDWalletProvider = require('truffle-hdwallet-provider');
var mnemonic = "";
module.exports = {
olc: {
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
dev: {
host: "127.0.0.1",
port: 8545,
network_id: "*",
gas: 4712388
},
ganache: {
host: "127.0.0.1",
port: 7545,
network_id: "*",
gas: 6000000
},
// rinkeby: {
// host: "localhost",
// port: 8545,
// network_id: 4,
// from: "0xcc936eb4fc467f6b4d48da58fb05afcfbecbcee2",
// gas: 7712390
// }
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonic,"https://rinkeby.infura.io/");
},
network_id: 4
}
}
};