mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-02-04 20:15:03 -05:00
chore: Mark into_recovered_unchecked as deprecated (#16283)
This commit is contained in:
@@ -104,6 +104,7 @@ pub trait SignedTransaction:
|
||||
/// ensuring that the signature has a low `s` value_ (EIP-2).
|
||||
///
|
||||
/// Returns `RecoveryError` if the transaction's signature is invalid.
|
||||
#[deprecated(note = "Use try_into_recovered_unchecked instead")]
|
||||
#[auto_impl(keep_default_for(&, Arc))]
|
||||
fn into_recovered_unchecked(self) -> Result<Recovered<Self>, RecoveryError> {
|
||||
self.recover_signer_unchecked().map(|signer| Recovered::new_unchecked(self, signer))
|
||||
|
||||
@@ -6,7 +6,10 @@ use crate::{
|
||||
helpers::estimate::EstimateCall, FromEthApiError, FullEthApiTypes, IntoEthApiError,
|
||||
RpcNodeCore, RpcNodeCoreExt, RpcReceipt, RpcTransaction,
|
||||
};
|
||||
use alloy_consensus::{transaction::TransactionMeta, BlockHeader, Transaction};
|
||||
use alloy_consensus::{
|
||||
transaction::{SignerRecoverable, TransactionMeta},
|
||||
BlockHeader, Transaction,
|
||||
};
|
||||
use alloy_dyn_abi::TypedData;
|
||||
use alloy_eips::{eip2718::Encodable2718, BlockId};
|
||||
use alloy_network::TransactionBuilder;
|
||||
@@ -483,7 +486,7 @@ pub trait LoadTransaction: SpawnBlocking + FullEthApiTypes + RpcNodeCoreExt {
|
||||
// part of pending block) and already. We don't need to
|
||||
// check for pre EIP-2 because this transaction could be pre-EIP-2.
|
||||
let transaction = tx
|
||||
.into_recovered_unchecked()
|
||||
.try_into_recovered_unchecked()
|
||||
.map_err(|_| EthApiError::InvalidTransactionSignature)?;
|
||||
|
||||
let tx = TransactionSource::Block {
|
||||
|
||||
Reference in New Issue
Block a user