-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
31 lines (27 loc) · 953 Bytes
/
truffle.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
/*
* NB: since truffle-hdwallet-provider 0.0.5 you must wrap HDWallet providers in a
* function when declaring them. Failure to do so will cause commands to hang. ex:
* ```
* mainnet: {
* provider: function() {
* return new HDWalletProvider(mnemonic, 'https://mainnet.infura.io/<infura-key>')
* },
* network_id: '1',
* gas: 4500000,
* gasPrice: 10000000000,
* },
*/
let HDWalletProvider = require('truffle-hdwallet-provider');
let mnemoic ="drip bargain lemon post million timber nephew maze burger sand morning grid";
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
networks: {
rinkeby: {
provider: function () {
return new HDWalletProvider(mnemoic, 'https://rinkeby.infura.io/e7cc830da9f546b29a0f80a94a2e8cc6')
},
network_id: 1
}
}
};