Skip to content

Instantly share code, notes, and snippets.

@tienshaoku
Last active March 24, 2020 14:46
Show Gist options
  • Save tienshaoku/4e5c5bca5469b3e3bb3ccbf850d4a6ec to your computer and use it in GitHub Desktop.
Save tienshaoku/4e5c5bca5469b3e3bb3ccbf850d4a6ec to your computer and use it in GitHub Desktop.
var HDWalletProvider = require("truffle-hdwallet-provider");
var privateKeys = ["First Private Key", "Second Private Key"];
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
ropsten: {
provider: function() {
return new HDWalletProvider(privateKeys, "Your Infura Link", 0, 2)
},
network_id: 3,
gas: 4000000
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment