Skip to content

Commit

Permalink
chore(storage): transactions -> receipts in receipts_by_block (para…
Browse files Browse the repository at this point in the history
  • Loading branch information
shekhirin authored Jul 12, 2023
1 parent bebc2b4 commit 9e330f1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/storage/provider/src/providers/database/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1090,12 +1090,12 @@ impl<'this, TX: DbTx<'this>> ReceiptProvider for DatabaseProvider<'this, TX> {
return if tx_range.is_empty() {
Ok(Some(Vec::new()))
} else {
let mut tx_cursor = self.tx.cursor_read::<tables::Receipts>()?;
let transactions = tx_cursor
let mut receipts_cursor = self.tx.cursor_read::<tables::Receipts>()?;
let receipts = receipts_cursor
.walk_range(tx_range)?
.map(|result| result.map(|(_, tx)| tx))
.map(|result| result.map(|(_, receipt)| receipt))
.collect::<std::result::Result<Vec<_>, _>>()?;
Ok(Some(transactions))
Ok(Some(receipts))
}
}
}
Expand Down

0 comments on commit 9e330f1

Please sign in to comment.