Skip to content

Commit

Permalink
Update reader.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nnsW3 authored Jan 31, 2025
1 parent 2bb92c8 commit 5757d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indexer/reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ func (e *EVMIndexerImpl) IterateBlockTxs(ctx context.Context, blockHeight uint64
func (e *EVMIndexerImpl) IterateBlockTxReceipts(ctx context.Context, blockHeight uint64, cb func(tx *coretypes.Receipt) (bool, error)) error {
return e.BlockAndIndexToTxHashMap.Walk(ctx, collections.NewPrefixedPairRange[uint64, uint64](blockHeight), func(key collections.Pair[uint64, uint64], txHashBz []byte) (bool, error) {
txHash := common.BytesToHash(txHashBz)
txRecept, err := e.TxReceiptByHash(ctx, txHash)
txReceipt, err := e.TxReceiptByHash(ctx, txHash)
if err != nil {
return true, err
}

return cb(txRecept)
return cb(txReceipt)
})
}

Expand Down

0 comments on commit 5757d84

Please sign in to comment.