mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore!:unify trait fn naming for recovery (#13981)
This commit is contained in:
@ -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 {
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user