-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
41 lines (40 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
34
35
36
37
38
39
40
41
const HDWalletProvider = require('@truffle/hdwallet-provider');
require('dotenv').config();
module.exports = {
contracts_build_directory: './ui/src/contracts',
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*'
},
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*'
},
live: {
provider: () => {
return new HDWalletProvider(process.env.MNEMONIC, process.env.RPC_URL);
},
network_id: '*',
// ~~Necessary due to https://github.com/trufflesuite/truffle/issues/1971~~
// Necessary due to https://github.com/trufflesuite/truffle/issues/3008
skipDryRun: true
},
ropsten: {
provider: () => {
return new HDWalletProvider(process.env.MNEMONIC, process.env.RPC_URL);
},
network_id: '3',
// ~~Necessary due to https://github.com/trufflesuite/truffle/issues/1971~~
// Necessary due to https://github.com/trufflesuite/truffle/issues/3008
skipDryRun: true
}
},
compilers: {
solc: {
version: '0.6.6'
}
}
};