diff --git a/crates/primitives-traits/src/lib.rs b/crates/primitives-traits/src/lib.rs index 79dff4ae36..38e83f8ccd 100644 --- a/crates/primitives-traits/src/lib.rs +++ b/crates/primitives-traits/src/lib.rs @@ -28,6 +28,7 @@ pub mod transaction; pub use transaction::{ execute::FillTxEnv, signed::{FullSignedTx, SignedTransaction}, + tx_type::{FullTxType, TxType}, FullTransaction, Transaction, TransactionExt, }; @@ -52,10 +53,6 @@ pub use alloy_primitives::{logs_bloom, Log, LogData}; mod storage; pub use storage::StorageEntry; -/// Transaction types -pub mod tx_type; -pub use tx_type::{FullTxType, TxType}; - /// Common header types pub mod header; #[cfg(any(test, feature = "arbitrary", feature = "test-utils"))] diff --git a/crates/primitives-traits/src/transaction/mod.rs b/crates/primitives-traits/src/transaction/mod.rs index 53b7727857..8bd0027a8b 100644 --- a/crates/primitives-traits/src/transaction/mod.rs +++ b/crates/primitives-traits/src/transaction/mod.rs @@ -2,6 +2,7 @@ pub mod execute; pub mod signed; +pub mod tx_type; use core::{fmt, hash::Hash}; diff --git a/crates/primitives-traits/src/tx_type.rs b/crates/primitives-traits/src/transaction/tx_type.rs similarity index 96% rename from crates/primitives-traits/src/tx_type.rs rename to crates/primitives-traits/src/transaction/tx_type.rs index d9ef687759..dc3dba7fdc 100644 --- a/crates/primitives-traits/src/tx_type.rs +++ b/crates/primitives-traits/src/transaction/tx_type.rs @@ -1,3 +1,5 @@ +//! Abstraction of transaction envelope type ID. + use core::fmt; use alloy_primitives::{U64, U8};