mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore(sdk): Add trait bound Compact on <T as FullTransaction>::Type (#12534)
This commit is contained in:
@ -8,12 +8,12 @@ use alloy_primitives::B256;
|
||||
use reth_codecs::Compact;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use crate::{InMemorySize, MaybeArbitrary, TxType};
|
||||
use crate::{FullTxType, InMemorySize, MaybeArbitrary, TxType};
|
||||
|
||||
/// Helper trait that unifies all behaviour required by transaction to support full node operations.
|
||||
pub trait FullTransaction: Transaction + Compact {}
|
||||
pub trait FullTransaction: Transaction<Type: FullTxType> + Compact {}
|
||||
|
||||
impl<T> FullTransaction for T where T: Transaction + Compact {}
|
||||
impl<T> FullTransaction for T where T: Transaction<Type: FullTxType> + Compact {}
|
||||
|
||||
/// Abstraction of a transaction.
|
||||
pub trait Transaction:
|
||||
|
||||
Reference in New Issue
Block a user