Skip to content

Commit

Permalink
chore: mark ecrecovered types as deprecated (#13882)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 20, 2025
1 parent ca63696 commit 7483c1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/primitives/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::*;
Expand Down
2 changes: 2 additions & 0 deletions crates/primitives/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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<T = TransactionSigned> = RecoveredTx<T>;
1 change: 1 addition & 0 deletions crates/primitives/src/transaction/pooled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T = PooledTransaction> = RecoveredTx<T>;

0 comments on commit 7483c1e

Please sign in to comment.