-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
32 lines (29 loc) · 865 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
27
28
29
30
31
32
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat";
var NonceTrackerSubprovider = require("web3-provider-engine/subproviders/nonce-tracker")
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
network_id: "*" // Match any network id
},
rinkeby: {
provider: function () {
var wallet = new HDWalletProvider(MNEMONIC, ENDPOINT)
var nonceTracker = new NonceTrackerSubprovider()
wallet.engine._providers.unshift(nonceTracker)
nonceTracker.setEngine(wallet.engine)
return wallet
},
network_id: 4,
// gas: 2000000, // <--- Twice as much
// gasPrice: 10000000000,
}
},
compilers: {
solc: {
version: "^0.4.24"
}
}
};