-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
24 lines (24 loc) · 729 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
var HDWalletProvider = require("truffle-hdwallet-provider"); //Use for passphrases
var HDWalletProviderPrivateKey = require("truffle-hdwallet-provider-privkey"); //use for private key
var passphrase = "<passphrase>";
var privateKey = "<private key>";
module.exports = {
migrations_directory: "./migrations",
networks: {
development: {
host: "localhost",
port: 7545, //Remember to pick the one you're using (Ganache is 7454)
network_id: "*" // Match any network id
},
rinkeby: {
provider: () => new HDWalletProvider(passphrase, "https://rinkeby.infura.io/x8SDVAzSoKmnTAA7Wwnt"),
network_id: "*"
}
},
solc: {
optimizer: {
enabled: true,
runs: 500
}
}
};