diff --git a/crates/primitives/src/proofs.rs b/crates/primitives/src/proofs.rs index 91687fc2acd6..4711da0934c3 100644 --- a/crates/primitives/src/proofs.rs +++ b/crates/primitives/src/proofs.rs @@ -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; diff --git a/crates/primitives/src/receipt.rs b/crates/primitives/src/receipt.rs index 29f7235698b9..fd14b95b1917 100644 --- a/crates/primitives/src/receipt.rs +++ b/crates/primitives/src/receipt.rs @@ -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() +