-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
26 lines (25 loc) · 859 Bytes
/
truffle.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
var HDWalletProvider = require("truffle-hdwallet-provider");
var secrets = require('./secret.js')
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
rinkeby: {
provider: function() {
return new HDWalletProvider(secrets.mnemonic, "https://rinkeby.infura.io/" + secrets.infura)
},
network_id: 4
},
kovan: {
provider: function() {
// let pro = new HDWalletProvider(secrets.mnemonicKovan, "https://kovan.infura.io/" + secrets.infura, 0)
// console.log(secrets.mnemonicKovan)
// console.log(pro.address)
// return pro
return new HDWalletProvider(secrets.mnemonicKovan, "https://kovan.infura.io/jwmDqmL5w80apHTX8VWY", 0)
},
network_id: 42,
gas: 4700000
}
}
}