Skip to content

Commit

Permalink
Always return error from dry-run with highest allowed gas limit
Browse files Browse the repository at this point in the history
  • Loading branch information
m-Peter committed Nov 27, 2024
1 parent 512533d commit 227f57e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions services/requester/requester.go
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ func (e *EVM) EstimateGas(
if resultSummary.ErrorCode == evmTypes.ExecutionErrCodeExecutionReverted {
return 0, errs.NewRevertError(resultSummary.ReturnedData)
}
return 0, errs.NewFailedTransactionError(resultSummary.ErrorMessage)
}

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

0 comments on commit 227f57e

Please sign in to comment.