mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
internal/ethapi: fix base fee too low error code in eth_simulateV1
This commit is contained in:
parent
0ad890e3af
commit
821812751e
1 changed files with 2 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue