From 9e330f111dc8d70ccb4764d8099d0ac371bbec61 Mon Sep 17 00:00:00 2001 From: Alexey Shekhirin Date: Wed, 12 Jul 2023 22:26:51 +0100 Subject: [PATCH] chore(storage): transactions -> receipts in `receipts_by_block` (#3744) --- .../storage/provider/src/providers/database/provider.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/storage/provider/src/providers/database/provider.rs b/crates/storage/provider/src/providers/database/provider.rs index 597909db4c..16f25d9792 100644 --- a/crates/storage/provider/src/providers/database/provider.rs +++ b/crates/storage/provider/src/providers/database/provider.rs @@ -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::()?; - let transactions = tx_cursor + let mut receipts_cursor = self.tx.cursor_read::()?; + let receipts = receipts_cursor .walk_range(tx_range)? - .map(|result| result.map(|(_, tx)| tx)) + .map(|result| result.map(|(_, receipt)| receipt)) .collect::, _>>()?; - Ok(Some(transactions)) + Ok(Some(receipts)) } } }