forked from udacity/FlightSurety
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
33 lines (31 loc) · 1.08 KB
/
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
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")
// run ganache with this command to generate always the same (deterministic) 50 accounts
// ganache-cli -l 999999999999 -d -a 50 -e 1000 --noVMErrorsOnRPCResponse -m "candy maple cake sugar pudding cream honey rich smooth crumble sweet treat"
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
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"
}
}
};