diff --git a/crates/primitives/src/transaction/access_list.rs b/crates/primitives-traits/src/transaction/access_list.rs similarity index 100% rename from crates/primitives/src/transaction/access_list.rs rename to crates/primitives-traits/src/transaction/access_list.rs diff --git a/crates/primitives-traits/src/transaction/mod.rs b/crates/primitives-traits/src/transaction/mod.rs index e474c8993c55..15b3df7fdb8b 100644 --- a/crates/primitives-traits/src/transaction/mod.rs +++ b/crates/primitives-traits/src/transaction/mod.rs @@ -11,6 +11,9 @@ pub use alloy_consensus::transaction::{TransactionInfo, TransactionMeta}; use crate::{InMemorySize, MaybeCompact, MaybeSerde}; use core::{fmt, hash::Hash}; +#[cfg(test)] +mod access_list; + /// Helper trait that unifies all behaviour required by transaction to support full node operations. pub trait FullTransaction: Transaction + MaybeCompact {} diff --git a/crates/primitives/src/transaction/mod.rs b/crates/primitives/src/transaction/mod.rs index d6ab8cfadb67..5070ad1b2662 100644 --- a/crates/primitives/src/transaction/mod.rs +++ b/crates/primitives/src/transaction/mod.rs @@ -48,7 +48,6 @@ pub use tx_type::TxType; pub mod signature; pub mod util; -pub(crate) mod access_list; mod pooled; mod tx_type;