-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
31 lines (30 loc) · 948 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
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: {
provider: function() {
var wallet = new HDWalletProvider(mnemonic, "http://127.0.0.1:8545/", 0, 50);
//var nonceTracker = new NonceTrackerSubprovider()
//wallet.engine._providers.unshift(nonceTracker)
//nonceTracker.setEngine(wallet.engine)
return wallet
},
network_id: '*',
gas: 6000000
}
},
compilers: {
solc: {
version: "0.6.2",
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: false,
runs: 200
},
evmVersion: "constantinople"
}
}
}
};