-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
32 lines (30 loc) · 1014 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
const path = require('path');
const HDWalletProvider = require('truffle-hdwallet-provider');
// clint : src : contracts
// Truffle configuration
module.exports = {
contracts_build_directory: path.join(__dirname, 'client/src/contracts'),
networks: {
development: {
port: 7545,
host: '127.0.0.1',
network_id: 5777,
},
ropsten_infura: {
provider: function () {
// Ropsten network definition: The provider for the ropsten network definition instantiates the HDWalletProvider.
return new HDWalletProvider(
'brick blade misery genius grow frequent spoon potato mechanic execute ankle depart friend owner orchard',
'https://ropsten.infura.io/v3/3939ce230df34d3986d46ff093d4d562',
0
);
},
network_id: 3,
},
},
compilers: {
solc: {
version: '0.8.0',
},
},
};