chore!:unify trait fn naming for recovery (#13981)

This commit is contained in:
Matthias Seitz
2025-01-24 21:56:46 +01:00
committed by GitHub
parent 61ae871d94
commit 5dac5cfc62
16 changed files with 58 additions and 60 deletions

View File

@ -485,7 +485,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_ecrecovered_unchecked()
.into_recovered_unchecked()
.map_err(|_| EthApiError::InvalidTransactionSignature)?;
let tx = TransactionSource::Block {

View File

@ -19,7 +19,7 @@ pub fn recover_raw_transaction<T: SignedTransaction>(mut data: &[u8]) -> EthResu
let transaction =
T::decode_2718(&mut data).map_err(|_| EthApiError::FailedToDecodeSignedTransaction)?;
transaction.try_into_ecrecovered().or(Err(EthApiError::InvalidTransactionSignature))
transaction.try_into_recovered().or(Err(EthApiError::InvalidTransactionSignature))
}
/// Performs a binary search within a given block range to find the desired block number.

View File

@ -180,7 +180,7 @@ where
.collect()
};
self.trace_block(Arc::new(block.with_senders_unchecked(senders)), evm_env, opts).await
self.trace_block(Arc::new(block.into_recovered_with_signers(senders)), evm_env, opts).await
}
/// Replays a block and returns the trace of each transaction.