From 65ab3a1f3f309cd297b4cb23283e688d5cf5048f Mon Sep 17 00:00:00 2001 From: Ivan Wang Date: Tue, 5 Mar 2024 18:14:49 +0800 Subject: [PATCH] R4R: fix/ivan/L-01 Incorrect Error Message --- light/txpool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {