Skip to content

Commit

Permalink
use ReceiptWithBloom::from
Browse files Browse the repository at this point in the history
  • Loading branch information
Rjected committed Dec 12, 2024
1 parent af6bc7a commit 7687d11
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions crates/net/network/src/eth_requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,8 @@ where
if let Some(receipts_by_block) =
self.client.receipts_by_block(BlockHashOrNumber::Hash(hash)).unwrap_or_default()
{
let receipt = receipts_by_block
.into_iter()
.map(|receipt| {
// TODO: use `into_with_bloom` on new alloy release
let bloom = receipt.bloom();
ReceiptWithBloom::new(receipt, bloom)
})
.collect::<Vec<_>>();
let receipt =
receipts_by_block.into_iter().map(ReceiptWithBloom::from).collect::<Vec<_>>();

total_bytes += receipt.length();
receipts.push(receipt);
Expand Down

0 comments on commit 7687d11

Please sign in to comment.