Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
klkvr committed Dec 6, 2024
1 parent fe96e0d commit bb44568
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 3 additions & 5 deletions crates/primitives/src/proofs.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
//! Helper function for calculating Merkle proofs and hashes.
use crate::Receipt;
use alloc::{borrow::Borrow, vec::Vec};
use alloy_consensus::{Header, EMPTY_OMMER_ROOT_HASH};
use alloy_eips::{eip2718::Encodable2718, eip4895::Withdrawal};
use alloy_primitives::{keccak256, B256};
use alloy_trie::root::{ordered_trie_root, ordered_trie_root_with_encoder};
use alloy_eips::eip2718::Encodable2718;
use alloy_primitives::B256;
use alloy_trie::root::ordered_trie_root_with_encoder;

pub use alloy_consensus::proofs::calculate_receipt_root;

Expand Down
6 changes: 0 additions & 6 deletions crates/primitives/src/receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,6 @@ impl Receipt {
}
}

impl Typed2718 for Receipt {
fn ty(&self) -> u8 {
self.tx_type as u8
}
}

impl Eip2718EncodableReceipt for Receipt {
fn eip2718_encoded_length_with_bloom(&self, bloom: &Bloom) -> usize {
self.rlp_header_inner(bloom).length_with_payload() +
Expand Down

0 comments on commit bb44568

Please sign in to comment.