diff --git a/crates/primitives/src/lib.rs b/crates/primitives/src/lib.rs index 3d05fb9bf237..5b5ae7bde5ba 100644 --- a/crates/primitives/src/lib.rs +++ b/crates/primitives/src/lib.rs @@ -45,9 +45,10 @@ pub use alloy_consensus::{ }; pub use transaction::{ util::secp256k1::{public_key_to_address, recover_signer_unchecked, sign_message}, - InvalidTransactionError, PooledTransactionsElementEcRecovered, Transaction, TransactionSigned, - TransactionSignedEcRecovered, TxType, + InvalidTransactionError, Transaction, TransactionSigned, TxType, }; +#[allow(deprecated)] +pub use transaction::{PooledTransactionsElementEcRecovered, TransactionSignedEcRecovered}; // Re-exports pub use reth_ethereum_forks::*; diff --git a/crates/primitives/src/transaction/mod.rs b/crates/primitives/src/transaction/mod.rs index 7ee291959c1c..0871b796ef95 100644 --- a/crates/primitives/src/transaction/mod.rs +++ b/crates/primitives/src/transaction/mod.rs @@ -3,6 +3,7 @@ use crate::RecoveredTx; pub use alloy_consensus::transaction::PooledTransaction; use once_cell as _; +#[allow(deprecated)] pub use pooled::PooledTransactionsElementEcRecovered; pub use reth_primitives_traits::{ sync::{LazyLock, OnceLock}, @@ -29,4 +30,5 @@ mod tx_type; pub use reth_ethereum_primitives::{Transaction, TransactionSigned}; /// Type alias kept for backward compatibility. +#[deprecated(note = "Use `Recovered` instead")] pub type TransactionSignedEcRecovered = RecoveredTx; diff --git a/crates/primitives/src/transaction/pooled.rs b/crates/primitives/src/transaction/pooled.rs index 7bd89896f350..858e02d0e82a 100644 --- a/crates/primitives/src/transaction/pooled.rs +++ b/crates/primitives/src/transaction/pooled.rs @@ -5,4 +5,5 @@ use crate::RecoveredTx; use alloy_consensus::transaction::PooledTransaction; /// A signed pooled transaction with recovered signer. +#[deprecated(note = "use `Recovered` instead")] pub type PooledTransactionsElementEcRecovered = RecoveredTx;