Created
May 9, 2018 02:31
-
-
Save derekchiang/fe171b89eb028989e4b84e94e59f2efa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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