Skip to content

Commit

Permalink
ci: fix new geth behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
gzeoneth committed Aug 29, 2024
1 parent d18c6c2 commit 5bce96b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions scripts/governanceDeployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,9 +725,9 @@ async function registerTokenOnArbOne(
const arbGatewaySubmissionFee = (
await arbInbox.callStatic.calculateRetryableSubmissionFee(
ethers.utils.hexDataLength(arbGatewayRegistrationData),
0
(await ethDeployer.getGasPrice()).mul(2)
)
).mul(10); // 10x this to address potential gas spike due to deployment
);
const valueForArbGateway = arbGatewaySubmissionFee.add(arbMaxGas.mul(arbGasPrice));

const extraValue = 1000;
Expand Down Expand Up @@ -772,9 +772,9 @@ async function registerTokenOnArbOne(
const arbRouterSubmissionFee = (
await arbInbox.callStatic.calculateRetryableSubmissionFee(
ethers.utils.hexDataLength(arbRouterRegistrationData),
0
(await ethDeployer.getGasPrice()).mul(2)
)
).mul(2);
);
const valueForArbRouter = arbRouterSubmissionFee.add(arbMaxGas.mul(arbGasPrice));

if (!deployedContracts.registerTokenArbOne2) {
Expand Down Expand Up @@ -834,9 +834,9 @@ async function registerTokenOnNova(
const novaGatewaySubmissionFee = (
await novaInbox.callStatic.calculateRetryableSubmissionFee(
ethers.utils.hexDataLength(novaGatewayRegistrationData),
0
(await ethDeployer.getGasPrice()).mul(2)
)
).mul(2);
);
const valueForNovaGateway = novaGatewaySubmissionFee.add(maxGas.mul(novaGasPrice));

// calcs for novaRouter
Expand All @@ -847,9 +847,9 @@ async function registerTokenOnNova(
const novaRouterSubmissionFee = (
await novaInbox.callStatic.calculateRetryableSubmissionFee(
ethers.utils.hexDataLength(novaRouterRegistrationData),
0
(await ethDeployer.getGasPrice()).mul(2)
)
).mul(2);
);
const valueForNovaRouter = novaRouterSubmissionFee.add(maxGas.mul(novaGasPrice));

// do the registration
Expand Down

0 comments on commit 5bce96b

Please sign in to comment.