From 9ab6b2fe11ceee6069fa882fffe60ede49f0beab Mon Sep 17 00:00:00 2001 From: healthykim Date: Fri, 20 Mar 2026 18:01:05 +0900 Subject: [PATCH] fix test error --- eth/protocols/eth/receipt.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/protocols/eth/receipt.go b/eth/protocols/eth/receipt.go index 5ce53f8a93..a113cd67af 100644 --- a/eth/protocols/eth/receipt.go +++ b/eth/protocols/eth/receipt.go @@ -262,8 +262,8 @@ func blockReceiptsToNetwork(blockReceipts, blockBody rlp.RawValue, q receiptQuer ) outer := enc.List() for i := 0; it.Next(); i++ { - txType, end := nextTxType() - if end { + txType, ok := nextTxType() + if !ok { return nil, false, fmt.Errorf("block has less txs than receipts (%d)", i) } // Skip receipts before the requested index.