Skip to content

Commit

Permalink
Merge pull request #30 from many-things/fix-do-estimate-gas
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdevbear authored Aug 24, 2023
2 parents b50afe4 + d9d002a commit 497f3de
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 497f3de

Please sign in to comment.