-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
35 lines (33 loc) · 982 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
32
33
34
35
const HDWalletProvider = require('@truffle/hdwallet-provider')
require('dotenv').config()
const mnemonic = process.env.MNEMONIC
const infuraURL = process.env.RPC_URL
module.exports = {
networks: {
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*',
},
rinkeby: {
provider: () =>
new HDWalletProvider({
mnemonic: {
phrase: mnemonic
},
providerOrUrl: infuraURL,
numberOfAddresses: 1,
shareNonce: true,
}),
network_id: '4',
networkCheckTimeout: 10000000,
// skipDryRun: - true if you don't want to test run the migration locally before the actual migration (default is false)
// skipDryRun: true
}
},
compilers: {
solc: {
version: '0.8.0',
},
},
}