Skip to content

Commit

Permalink
use chainId from config, hard-code lower gas limits as sepolia gas is…
Browse files Browse the repository at this point in the history
… now expensive
  • Loading branch information
edmundedgar committed May 20, 2024
1 parent 49d4b52 commit 3c93b47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/deployment/3_deployContracts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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

Check failure on line 424 in src/deployment/3_deployContracts.js

View workflow job for this annotation

GitHub Actions / Code linting (16.x, ubuntu-latest)

A space is required before '}'
);
} catch (error) {
console.error('polygonZkEVMGlobalExitRoot initialization error', error.message);
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3c93b47

Please sign in to comment.