Skip to content

Commit 227f57e

Browse files
committed
Always return error from dry-run with highest allowed gas limit
1 parent 512533d commit 227f57e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

services/requester/requester.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ func (e *EVM) EstimateGas(
404404
if resultSummary.ErrorCode == evmTypes.ExecutionErrCodeExecutionReverted {
405405
return 0, errs.NewRevertError(resultSummary.ReturnedData)
406406
}
407+
return 0, errs.NewFailedTransactionError(resultSummary.ErrorMessage)
407408
}
408409

409410
// For almost any transaction, the gas consumed by the unconstrained execution

0 commit comments

Comments
 (0)