Skip to content

Commit

Permalink
consensus: add Debug trait bound for Transaction trait (#1543)
Browse files Browse the repository at this point in the history
consensus: add Debug trait bound for Transaction trait
  • Loading branch information
tcoratger authored Oct 21, 2024
1 parent f1ebdb3 commit c3e2d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/consensus/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::Signed;
use alloc::vec::Vec;
use alloy_eips::{eip2930::AccessList, eip7702::SignedAuthorization};
use alloy_primitives::{keccak256, Address, Bytes, ChainId, TxKind, B256, U256};
use core::any;
use core::{any, fmt};

mod eip1559;
pub use eip1559::TxEip1559;
Expand Down Expand Up @@ -46,7 +46,7 @@ pub mod serde_bincode_compat {

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

Expand Down

0 comments on commit c3e2d27

Please sign in to comment.