feat: add MaybeSerdeBincodeCompat to SignedTx (#14433)

This commit is contained in:
Aurélien
2025-02-12 10:39:37 +01:00
committed by GitHub
parent faa6b9c125
commit 17712fe4e3

View File

@ -2,7 +2,7 @@
use crate::{ use crate::{
crypto::secp256k1::{recover_signer, recover_signer_unchecked}, crypto::secp256k1::{recover_signer, recover_signer_unchecked},
FillTxEnv, InMemorySize, MaybeCompact, MaybeSerde, FillTxEnv, InMemorySize, MaybeCompact, MaybeSerde, MaybeSerdeBincodeCompat,
}; };
use alloc::{fmt, vec::Vec}; use alloc::{fmt, vec::Vec};
use alloy_consensus::{ use alloy_consensus::{
@ -14,9 +14,15 @@ use alloy_primitives::{keccak256, Address, PrimitiveSignature as Signature, TxHa
use core::hash::Hash; use core::hash::Hash;
/// Helper trait that unifies all behaviour required by block to support full node operations. /// 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<T> FullSignedTx for T where T: SignedTransaction + FillTxEnv + MaybeCompact {} impl<T> FullSignedTx for T where
T: SignedTransaction + FillTxEnv + MaybeCompact + MaybeSerdeBincodeCompat
{
}
/// A signed transaction. /// A signed transaction.
#[auto_impl::auto_impl(&, Arc)] #[auto_impl::auto_impl(&, Arc)]