-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathtruffle.js
More file actions
31 lines (29 loc) · 840 Bytes
/
truffle.js
File metadata and controls
31 lines (29 loc) · 840 Bytes
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
var HDWalletProvider = require("truffle-hdwallet-provider");
var infura_apikey = "you need to register in Infura for an Access Token.";
var mnemonic = "< twelve words you can find in metamask/settings/reveal seed words >";
var address = "your ropsten address with ether"
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
solc: {
optimizer: {
enabled: true,
runs: 200
}
},
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*" // Match any network id
},
ropsten: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/"+infura_apikey)
},
network_id: 3,
from: address,
gas: 4700388
}
}
};