forked from Hsiang-xxs/via-issuer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
34 lines (32 loc) · 1.02 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
34
const HDWalletProvider = require("@truffle/hdwallet-provider");
// just for test
const mnemonic = "obscure minute claw dial quit fatigue random false certain essay scheme maid";
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
development: {
host: "127.0.0.1", // Localhost (default: none)
port: 8545, // Standard Ethereum port (default: none)
network_id: "*", // Any network (default: none)
websockets: true
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/v3/515f610165e2471a8373a0b6678e5ab9")
},
network_id: 3
}
},
compilers: {
solc: {
version: "0.5.7",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
};