diff --git a/truffle-config.js b/truffle-config.js index d9ef21c..3379ece 100644 --- a/truffle-config.js +++ b/truffle-config.js @@ -81,19 +81,31 @@ module.exports = { // production: true // Treats this network as if it was a public net. (default: false) // } polygon_testnet: { - provider: () => new HDWalletProvider(kccTestnetKey, `https://rpc-mumbai.maticvigil.com`), + provider: () => new HDWalletProvider({ + privateKeys: [kccTestnetKey], + providerOrUrl: `https://rpc-mumbai.maticvigil.com`, + pollingInterval: 8000 + }), network_id: 80001, confirmations: 6, timeoutBlocks: 5000, + networkCheckTimeout: 10000000, + deploymentPollingInterval: 8000, skipDryRun: true, production: true, from: '0x50A8e60041A206AcaA5F844a1104896224be6F39' }, polygon: { - provider: () => new HDWalletProvider(mnemonic, `https://polygon-rpc.com`), + provider: () => new HDWalletProvider({ + mnemonic: mnemonic, + providerOrUrl: `https://polygon-rpc.com`, + pollingInterval: 8000 + }), network_id: 137, confirmations: 6, timeoutBlocks: 5000, + networkCheckTimeout: 10000000, + deploymentPollingInterval: 8000, skipDryRun: true, production: true, from: '0x565edA4ef351EB78F03B8AfCb6dCF02E29cAD62e'