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)) } } }