From ba7f21b83bedac38bbd95d22808f4526b5e05416 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Thu, 14 Nov 2024 13:09:49 +0100 Subject: [PATCH] Add trait bound Compact on ::Type --- crates/primitives-traits/src/transaction/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/primitives-traits/src/transaction/mod.rs b/crates/primitives-traits/src/transaction/mod.rs index bb6f6a711e3e..4d7ab78685fa 100644 --- a/crates/primitives-traits/src/transaction/mod.rs +++ b/crates/primitives-traits/src/transaction/mod.rs @@ -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 + Compact {} -impl FullTransaction for T where T: Transaction + Compact {} +impl FullTransaction for T where T: Transaction + Compact {} /// Abstraction of a transaction. pub trait Transaction: