Skip to content

Commit

Permalink
chore(sdk): Add trait bound Compact on `<T as FullTransaction>::Typ…
Browse files Browse the repository at this point in the history
…e` (#12534)
  • Loading branch information
emhane authored Nov 14, 2024
1 parent 4a0bc37 commit 217d9f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/primitives-traits/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 217d9f7

Please sign in to comment.