Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading