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()
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.