feat: support blobs in eth_sendRawTransaction (#4495)

This commit is contained in:
Dan Cline
2023-09-06 08:48:15 -04:00
committed by GitHub
parent 6299c26b56
commit 422d930914
6 changed files with 32 additions and 11 deletions

View File

@ -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 }
}
}