Skip to content

Commit d771192

Browse files
authored
Add blanket impl of Transaction, TxReceipt and BlockHeader references (alloy-rs#1657)
Add blanket impl of Transaction and BlockHeader references
1 parent 2d047ad commit d771192

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

crates/consensus/src/block/header.rs

+1
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ impl<'a> arbitrary::Arbitrary<'a> for Header {
560560
}
561561

562562
/// Trait for extracting specific Ethereum block data from a header
563+
#[auto_impl::auto_impl(&, Arc)]
563564
pub trait BlockHeader {
564565
/// Retrieves the parent hash of the block
565566
fn parent_hash(&self) -> B256;

crates/consensus/src/transaction/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ pub mod serde_bincode_compat {
5353

5454
/// Represents a minimal EVM transaction.
5555
#[doc(alias = "Tx")]
56+
#[auto_impl::auto_impl(&, Arc)]
5657
pub trait Transaction: fmt::Debug + any::Any + Send + Sync + 'static {
5758
/// Get `chain_id`.
5859
fn chain_id(&self) -> Option<ChainId>;

0 commit comments

Comments
 (0)