From d9d002a91544cc7d76576696eff5f624fdf90c99 Mon Sep 17 00:00:00 2001 From: KimDongwu Date: Thu, 24 Aug 2023 22:25:41 +0900 Subject: [PATCH] ethapi/api: fix `DoEstimateGas` doesn't return evm revert error --- ethapi/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethapi/api.go b/ethapi/api.go index ef9f103eff5e..32e41fbc19c6 100644 --- a/ethapi/api.go +++ b/ethapi/api.go @@ -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