From e6d5f3cf78fbb3736581384f8e892fa0e9e674b5 Mon Sep 17 00:00:00 2001 From: cebgcontract <99630598+cebgcontract@users.noreply.github.com> Date: Tue, 9 Aug 2022 15:56:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4polygon=20testnet=20=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E8=84=9A=E6=9C=AC=E7=9A=84=E8=B6=85=E6=97=B6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- truffle-config.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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'