Created
March 17, 2020 10:37
-
-
Save alexroan/c7324d84b0fb0e45732ebb7b6ed0b398 to your computer and use it in GitHub Desktop.
truffle-smart-contract/truffle-config.js/0.0.6
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
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