-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle-config.js
52 lines (49 loc) · 1.47 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const path = require("path");
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, "client/src/contracts"),
networks: {
develop: {
port: 8545,
gas: 6721974
}
},
compilers: {
solc: {
version: "0.5.15", // Fetch exact version from solc-bin (default: truffle's version)
settings: { // See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 300
}
}
}
}
};
// const path = require("path");
// var HDWalletProvider = require("truffle-hdwallet-provider");
// const MNEMONIC = 'dizzy find soup mammal month onion drop bless soap joke awesome burden';
// const tokenKey = 'ab9f92e073fe46d285f09353a66f1031';
// module.exports = {
// // See <http://truffleframework.com/docs/advanced/configuration>
// // to customize your Truffle configuration!
// contracts_build_directory: path.join(__dirname, "client/src/contracts"),
// networks: {
// develop: {
// port: 7545,
// },
// rinkeby: {
// host: "localhost",
// provider: function () {
// return new HDWalletProvider(
// MNEMONIC,
// "https://rinkeby.infura.io/v3/" + tokenKey
// );
// },
// network_id: 4,
// gas: 6700000,
// gasPrice: 10000000000,
// },
// },
// };