chore(sdk): Add trait bound Compact on <T as FullTransaction>::Type (#12534)

This commit is contained in:
Emilia Hane
2024-11-14 16:58:04 +01:00
committed by GitHub
parent 4a0bc37cbb
commit 217d9f7c12

View File

@ -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: