Skip to content

Commit 36fb1ed

Browse files
committed
update
1 parent 1723a29 commit 36fb1ed

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

src/modes/interOrderbook.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,13 @@ export async function dryrun({
177177
.div(100);
178178
if (gasLimit.isZero()) {
179179
throw new ExecutionRevertedError({
180+
cause: new BaseError("RPC returned 0 for eth_estimateGas", {
181+
cause: new Error(
182+
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
183+
),
184+
}),
180185
message:
181-
"Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection",
186+
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
182187
});
183188
}
184189
rawtx.gas = gasLimit.toBigInt();

src/modes/intraOrderbook.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,13 @@ export async function dryrun({
179179
.div(100);
180180
if (gasLimit.isZero()) {
181181
throw new ExecutionRevertedError({
182+
cause: new BaseError("RPC returned 0 for eth_estimateGas", {
183+
cause: new Error(
184+
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
185+
),
186+
}),
182187
message:
183-
"Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection",
188+
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
184189
});
185190
}
186191
rawtx.gas = gasLimit.toBigInt();

src/modes/routeProcessor.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,13 @@ export async function dryrun({
243243
.div(100);
244244
if (gasLimit.isZero()) {
245245
throw new ExecutionRevertedError({
246+
cause: new BaseError("RPC returned 0 for eth_estimateGas", {
247+
cause: new Error(
248+
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
249+
),
250+
}),
246251
message:
247-
"Failed to estimated gas, rpc returned 0 for gasEstimate call without rejection",
252+
"Failed to estimated gas, RPC returned 0 for eth_estimateGas call without rejection",
248253
});
249254
}
250255
rawtx.gas = gasLimit.toBigInt();

0 commit comments

Comments
 (0)