diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index f1ae3e8735..833cb7e818 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1286,7 +1286,8 @@ func DoEstimateGas(ctx context.Context, b Backend, args TransactionArgs, blockNr allowance := new(big.Int).Div(available, feeCap) // If the allowance is larger than maximum uint64, skip checking - if allowance.IsUint64() && hi > allowance.Uint64() { + // If the runMode is core.GasEstimationWithSkipCheckBalanceMode, skip checking + if runMode != core.GasEstimationWithSkipCheckBalanceMode && allowance.IsUint64() && hi > allowance.Uint64() { transfer := args.Value if transfer == nil { transfer = new(hexutil.Big)