Skip to content

Commit

Permalink
ethapi/api: fix DoEstimateGas doesn't return evm revert error
Browse files Browse the repository at this point in the history
  • Loading branch information
KimDongwu committed Aug 24, 2023
1 parent b50afe4 commit d9d002a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethapi/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr
hi += uint64(float64(hi) * 0.2)

// Reject the transaction as invalid if it still fails at the highest allowance
if hi == cap {
if hi >= cap {
failed, result, err := executable(hi)
if err != nil {
return 0, err
Expand Down

0 comments on commit d9d002a

Please sign in to comment.