Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jan 17, 2025
1 parent 1723a29 commit 36fb1ed
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
7 changes: 6 additions & 1 deletion src/modes/interOrderbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,13 @@ export async function dryrun({
.div(100);
if (gasLimit.isZero()) {
throw new ExecutionRevertedError({
cause: new BaseError("RPC returned 0 for eth_estimateGas", {
cause: new Error(
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
),
}),
message:
"Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection",
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
});
}
rawtx.gas = gasLimit.toBigInt();
Expand Down
7 changes: 6 additions & 1 deletion src/modes/intraOrderbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,13 @@ export async function dryrun({
.div(100);
if (gasLimit.isZero()) {
throw new ExecutionRevertedError({
cause: new BaseError("RPC returned 0 for eth_estimateGas", {
cause: new Error(
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
),
}),
message:
"Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection",
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
});
}
rawtx.gas = gasLimit.toBigInt();
Expand Down
7 changes: 6 additions & 1 deletion src/modes/routeProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,13 @@ export async function dryrun({
.div(100);
if (gasLimit.isZero()) {
throw new ExecutionRevertedError({
cause: new BaseError("RPC returned 0 for eth_estimateGas", {
cause: new Error(
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
),
}),
message:
"Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection",
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
});
}
rawtx.gas = gasLimit.toBigInt();
Expand Down

0 comments on commit 36fb1ed

Please sign in to comment.