fix test error

This commit is contained in:
healthykim 2026-03-20 18:01:05 +09:00
parent eefafc17ba
commit 9ab6b2fe11

View file

@ -262,8 +262,8 @@ func blockReceiptsToNetwork(blockReceipts, blockBody rlp.RawValue, q receiptQuer
) )
outer := enc.List() outer := enc.List()
for i := 0; it.Next(); i++ { for i := 0; it.Next(); i++ {
txType, end := nextTxType() txType, ok := nextTxType()
if end { if !ok {
return nil, false, fmt.Errorf("block has less txs than receipts (%d)", i) return nil, false, fmt.Errorf("block has less txs than receipts (%d)", i)
} }
// Skip receipts before the requested index. // Skip receipts before the requested index.