Skip to content

Commit

Permalink
More gas for arb
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed May 23, 2024
1 parent 51b7f5f commit 9bb3632
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/relay-relayer/src/client/contract_relayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export class RelayerContractClient {
const estimatedGas = await this.contract["relay"].estimateGas(
options.message
);
contractOptions.gasLimit = estimatedGas + estimatedGas / BigInt(2);
contractOptions.gasLimit = estimatedGas + estimatedGas;
} else {
contractOptions.gasLimit = options.gasLimit;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/relay-relayer/src/relay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class RelayerRelay extends CommonRelay<RelayerRelayLifecycle> {
try {
targetTxRelayMessage = await this.targetRelayerClient.relay({
message,
gasLimit: BigInt(sourceNextMessageAccepted.messageGasLimit) * BigInt(63) / BigInt(64) + baseGas + BigInt(100000),
gasLimit: BigInt(sourceNextMessageAccepted.messageGasLimit) * BigInt(64) / BigInt(63) + baseGas + BigInt(100000),
chainId: options.targetChainId,
});
} catch (e: any) {
Expand Down

0 comments on commit 9bb3632

Please sign in to comment.