mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: add MaybeSerdeBincodeCompat to SignedTx (#14433)
This commit is contained in:
@ -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)]
|
||||||
|
|||||||
Reference in New Issue
Block a user