diff --git a/light/txpool.go b/light/txpool.go index 5a122089d0..5ab9ffdf5b 100644 --- a/light/txpool.go +++ b/light/txpool.go @@ -392,7 +392,7 @@ func (pool *TxPool) validateTx(ctx context.Context, tx *types.Transaction) error selfPayAmount = new(big.Int).Add(selfPayAmount, tx.Value()) sponsorBalance := currentState.GetBalance(metaTxParams.GasFeeSponsor) if sponsorBalance.Cmp(sponsorAmount) < 0 { - return core.ErrInsufficientFunds + return types.ErrSponsorBalanceNotEnough } userBalance := currentState.GetBalance(from) if userBalance.Cmp(selfPayAmount) < 0 {