chore: blanket implementation for OpPooledTx (#14990)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
Arsenii Kulikov
2025-03-12 20:51:07 +04:00
committed by GitHub
parent e9a9a3f7b2
commit f3a9ba6f04

View File

@@ -247,13 +247,7 @@ where
/// Helper trait to provide payload builder with access to conditionals and encoded bytes of
/// transaction.
pub trait OpPooledTx: MaybeConditionalTransaction + PoolTransaction {}
impl<Cons, Pooled> OpPooledTx for OpPooledTransaction<Cons, Pooled>
where
Cons: SignedTransaction + From<Pooled>,
Pooled: SignedTransaction + TryFrom<Cons, Error: core::error::Error>,
{
}
impl<T> OpPooledTx for T where T: MaybeConditionalTransaction + PoolTransaction {}
#[cfg(test)]
mod tests {