Updated HDWalletProvider constructor
Updated object passed to HDWalletProvider to reflect the latest
requirements. Old way is out-dated.
@@ -60,15 +60,21 @@ module.exports = {
keep_dev: {
provider: function () {
- return new HDWalletProvider(process.env.CONTRACT_OWNER_ETH_ACCOUNT_PRIVATE_KEY, "http://localhost:8545")
+ return new HDWalletProvider({
+ privateKeys: [process.env.CONTRACT_OWNER_ETH_ACCOUNT_PRIVATE_KEY],
+ providerOrUrl: "http://localhost:8545",
+ })
},
gas: 6721975,
- network_id: 1101
+ network_id: 1101,
},
ropsten: {
provider: function () {
- return new HDWalletProvider(process.env.CONTRACT_OWNER_ETH_ACCOUNT_PRIVATE_KEY, process.env.ETH_HOSTNAME)
+ return new HDWalletProvider({
+ privateKeys: [process.env.CONTRACT_OWNER_ETH_ACCOUNT_PRIVATE_KEY],
+ providerOrUrl: process.env.ETH_HOSTNAME,
+ })
},
gas: 8000000,
network_id: 3,
