mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
feat: support blobs in eth_sendRawTransaction (#4495)
This commit is contained in:
@ -394,7 +394,7 @@ impl PooledTransactionsElementEcRecovered {
|
||||
self.transaction
|
||||
}
|
||||
|
||||
/// Transform back to [`PooledTransactionsElement`]
|
||||
/// Transform back to [`TransactionSignedEcRecovered`]
|
||||
pub fn into_ecrecovered_transaction(self) -> TransactionSignedEcRecovered {
|
||||
let (tx, signer) = self.into_components();
|
||||
tx.into_ecrecovered_transaction(signer)
|
||||
@ -414,3 +414,11 @@ impl PooledTransactionsElementEcRecovered {
|
||||
Self { transaction, signer }
|
||||
}
|
||||
}
|
||||
|
||||
impl From<TransactionSignedEcRecovered> for PooledTransactionsElementEcRecovered {
|
||||
fn from(tx: TransactionSignedEcRecovered) -> Self {
|
||||
let signer = tx.signer;
|
||||
let transaction = tx.signed_transaction.into();
|
||||
Self { transaction, signer }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user