chore: flip tx conversion impl (#13208)

This commit is contained in:
Matthias Seitz
2024-12-07 20:19:43 +01:00
committed by GitHub
parent abaeb35fd1
commit 2846dd242e
3 changed files with 32 additions and 31 deletions

View File

@ -1267,7 +1267,8 @@ impl PoolTransaction for EthPooledTransaction {
tx: RecoveredTx<Self::Consensus>,
) -> Result<RecoveredTx<Self::Pooled>, Self::TryFromConsensusError> {
let (tx, signer) = tx.to_components();
let pooled = PooledTransactionsElement::try_from_broadcast(tx)
let pooled = tx
.try_into_pooled()
.map_err(|_| TryFromRecoveredTransactionError::BlobSidecarMissing)?;
Ok(RecoveredTx::from_signed_transaction(pooled, signer))
}