From 3c93b47831c7a9923ff86edd739c3cb541b2a7f6 Mon Sep 17 00:00:00 2001 From: Edmund Edgar Date: Mon, 20 May 2024 04:39:49 +0000 Subject: [PATCH] use chainId from config, hard-code lower gas limits as sepolia gas is now expensive --- src/deployment/3_deployContracts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/deployment/3_deployContracts.js b/src/deployment/3_deployContracts.js index 2b2c3cf..584e041 100644 --- a/src/deployment/3_deployContracts.js +++ b/src/deployment/3_deployContracts.js @@ -157,7 +157,7 @@ async function main() { }); if (!ongoingDeployment.chainIdManager) { - chainIdManagerContract = await ChainIdManagerFactory.deploy(1500054); + chainIdManagerContract = await ChainIdManagerFactory.deploy(chainID); console.log('#######################\n'); console.log('chainIdManager deployed to:', chainIdManagerContract.address); @@ -421,7 +421,7 @@ async function main() { proxyBridgeAddress, ethers.constants.HashZero, ethers.constants.HashZero, - { gasLimit: 5000000 }, // required as native gas limit estimation would return a too low result + { gasLimit: 300000}, // required as native gas limit estimation would return a too low result ); } catch (error) { console.error('polygonZkEVMGlobalExitRoot initialization error', error.message); @@ -537,7 +537,7 @@ async function main() { gasTokenAddress, verifierContract.address, polygonZkEVMBridgeContract.address, - { gasLimit: 5000000 }, // required as native gas limit estimation would return a too low result + { gasLimit: 600000 }, // required as native gas limit estimation would return a too low result ); console.log('initializeTx', initializeTx.hash); } catch (error) {