From c0fc5e0bda7f14f6c29231b5f1b1a1be2245f9b7 Mon Sep 17 00:00:00 2001 From: Sina M <1591639+s1na@users.noreply.github.com> Date: Tue, 26 May 2026 09:36:28 +0200 Subject: [PATCH] internal/ethapi: fix base fee too low error code in eth_simulateV1 (#34951) Fixes the issue discovered in https://github.com/NethermindEth/nethermind/issues/11412. --- internal/ethapi/errors.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/ethapi/errors.go b/internal/ethapi/errors.go index cc79af6f3c..392bf86cf4 100644 --- a/internal/ethapi/errors.go +++ b/internal/ethapi/errors.go @@ -102,6 +102,7 @@ func (e *invalidTxError) ErrorCode() int { return e.Code } const ( errCodeNonceTooHigh = -38011 errCodeNonceTooLow = -38010 + errCodeBaseFeeTooLow = -38012 errCodeIntrinsicGas = -38013 errCodeInsufficientFunds = -38014 errCodeBlockGasLimitReached = -38015 @@ -134,7 +135,7 @@ func txValidationError(err error) *invalidTxError { case errors.Is(err, core.ErrTipAboveFeeCap): return &invalidTxError{Message: err.Error(), Code: errCodeInvalidParams} case errors.Is(err, core.ErrFeeCapTooLow): - return &invalidTxError{Message: err.Error(), Code: errCodeInvalidParams} + return &invalidTxError{Message: err.Error(), Code: errCodeBaseFeeTooLow} case errors.Is(err, core.ErrInsufficientFunds): return &invalidTxError{Message: err.Error(), Code: errCodeInsufficientFunds} case errors.Is(err, core.ErrIntrinsicGas):