Skip to content

Instantly share code, notes, and snippets.

@derekchiang
Created May 9, 2018 02:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekchiang/fe171b89eb028989e4b84e94e59f2efa to your computer and use it in GitHub Desktop.
Save derekchiang/fe171b89eb028989e4b84e94e59f2efa to your computer and use it in GitHub Desktop.
let HDWalletProvider = require('truffle-hdwallet-provider')
let { mnemonic, infuraKey } = require('./credentials.json')
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
//
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // match any network
},
mainnet: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/" + infuraKey)
},
network_id: 1,
gasPrice: 1000000000,
},
rinkeby: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/" + infuraKey)
},
network_id: 4
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment