Skip to content

Instantly share code, notes, and snippets.

@alexroan
Created March 17, 2020 10:37
Show Gist options
  • Save alexroan/c7324d84b0fb0e45732ebb7b6ed0b398 to your computer and use it in GitHub Desktop.
Save alexroan/c7324d84b0fb0e45732ebb7b6ed0b398 to your computer and use it in GitHub Desktop.
truffle-smart-contract/truffle-config.js/0.0.6
const HDWalletProvider = require('truffle-hdwallet-provider-privkey');
const privateKey = "private-key-goes-here";
const endpointUrl = "endpoint-goes-here";
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "5777",
},
kovan: {
provider: function() {
return new HDWalletProvider(
//private keys array
[privateKey],
//url to ethereum node
endpointUrl
)
},
gas: 5000000,
gasPrice: 25000000000,
network_id: 42
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment