mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add clone into consensus (#12999)
This commit is contained in:
@ -239,7 +239,7 @@ pub trait EthTransactions: LoadTransaction<Provider: BlockReaderIdExt> {
|
||||
if let Some(tx) =
|
||||
RpcNodeCore::pool(self).get_transaction_by_sender_and_nonce(sender, nonce)
|
||||
{
|
||||
let transaction = tx.transaction.clone().into_consensus();
|
||||
let transaction = tx.transaction.clone_into_consensus();
|
||||
return Ok(Some(from_recovered(transaction.into(), self.tx_resp_builder())?));
|
||||
}
|
||||
}
|
||||
|
||||
@ -49,7 +49,7 @@ where
|
||||
{
|
||||
content.entry(tx.sender()).or_default().insert(
|
||||
tx.nonce().to_string(),
|
||||
from_recovered(tx.clone().into_consensus().into(), resp_builder)?,
|
||||
from_recovered(tx.clone_into_consensus().into(), resp_builder)?,
|
||||
);
|
||||
|
||||
Ok(())
|
||||
@ -101,7 +101,7 @@ where
|
||||
inspect: &mut BTreeMap<Address, BTreeMap<String, TxpoolInspectSummary>>,
|
||||
) {
|
||||
let entry = inspect.entry(tx.sender()).or_default();
|
||||
let tx: TransactionSignedEcRecovered = tx.clone().into_consensus().into();
|
||||
let tx: TransactionSignedEcRecovered = tx.clone_into_consensus().into();
|
||||
entry.insert(
|
||||
tx.nonce().to_string(),
|
||||
TxpoolInspectSummary {
|
||||
|
||||
Reference in New Issue
Block a user