From 17712fe4e3974217f0befb336a9b94917c80565c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= <3535019+leruaa@users.noreply.github.com> Date: Wed, 12 Feb 2025 10:39:37 +0100 Subject: [PATCH] feat: add MaybeSerdeBincodeCompat to SignedTx (#14433) --- crates/primitives-traits/src/transaction/signed.rs | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/crates/primitives-traits/src/transaction/signed.rs b/crates/primitives-traits/src/transaction/signed.rs index 272951de3..48d059d8c 100644 --- a/crates/primitives-traits/src/transaction/signed.rs +++ b/crates/primitives-traits/src/transaction/signed.rs @@ -2,7 +2,7 @@ use crate::{ crypto::secp256k1::{recover_signer, recover_signer_unchecked}, - FillTxEnv, InMemorySize, MaybeCompact, MaybeSerde, + FillTxEnv, InMemorySize, MaybeCompact, MaybeSerde, MaybeSerdeBincodeCompat, }; use alloc::{fmt, vec::Vec}; use alloy_consensus::{ @@ -14,9 +14,15 @@ use alloy_primitives::{keccak256, Address, PrimitiveSignature as Signature, TxHa use core::hash::Hash; /// Helper trait that unifies all behaviour required by block to support full node operations. -pub trait FullSignedTx: SignedTransaction + FillTxEnv + MaybeCompact {} +pub trait FullSignedTx: + SignedTransaction + FillTxEnv + MaybeCompact + MaybeSerdeBincodeCompat +{ +} -impl FullSignedTx for T where T: SignedTransaction + FillTxEnv + MaybeCompact {} +impl FullSignedTx for T where + T: SignedTransaction + FillTxEnv + MaybeCompact + MaybeSerdeBincodeCompat +{ +} /// A signed transaction. #[auto_impl::auto_impl(&, Arc)]