From 6608a2aafd3603afe59f95fa7b2a8ec00b8eaa19 Mon Sep 17 00:00:00 2001 From: cui Date: Tue, 21 Oct 2025 23:49:43 +0800 Subject: [PATCH] core/types: remove unused `ErrInvalidTxType` var (#32989) The var `ErrInvalidTxType` is never used in the code base. --- core/types/transaction.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/types/transaction.go b/core/types/transaction.go index e98563b85f..6af960b8c3 100644 --- a/core/types/transaction.go +++ b/core/types/transaction.go @@ -34,7 +34,6 @@ import ( var ( ErrInvalidSig = errors.New("invalid transaction v, r, s values") ErrUnexpectedProtection = errors.New("transaction type does not supported EIP-155 protected signatures") - ErrInvalidTxType = errors.New("transaction type not valid in this context") ErrTxTypeNotSupported = errors.New("transaction type not supported") ErrGasFeeCapTooLow = errors.New("fee cap less than base fee") ErrUint256Overflow = errors.New("bigint overflow, too large for uint256")