From d7f5846a37366a506c0192a4aeb571d22ae6ed5a Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Mon, 2 Dec 2024 20:53:41 +0100 Subject: [PATCH] chore: add tx trait bounds to primitives (#13075) --- crates/primitives-traits/src/node.rs | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/crates/primitives-traits/src/node.rs b/crates/primitives-traits/src/node.rs index e610c094b..5b3691d2f 100644 --- a/crates/primitives-traits/src/node.rs +++ b/crates/primitives-traits/src/node.rs @@ -1,9 +1,8 @@ -use core::fmt; - use crate::{ Block, BlockBody, BlockHeader, FullBlock, FullBlockBody, FullBlockHeader, FullReceipt, - FullSignedTx, FullTxType, MaybeArbitrary, MaybeSerde, Receipt, + FullSignedTx, FullTxType, Receipt, SignedTransaction, TxType, }; +use core::fmt; /// Configures all the primitive types of the node. pub trait NodePrimitives: @@ -16,27 +15,9 @@ pub trait NodePrimitives: /// Block body primitive. type BlockBody: BlockBody; /// Signed version of the transaction type. - type SignedTx: Send - + Sync - + Unpin - + Clone - + fmt::Debug - + PartialEq - + Eq - + MaybeSerde - + MaybeArbitrary - + 'static; + type SignedTx: SignedTransaction + 'static; /// Transaction envelope type ID. - type TxType: Send - + Sync - + Unpin - + Clone - + Default - + fmt::Debug - + PartialEq - + Eq - + MaybeArbitrary - + 'static; + type TxType: TxType + 'static; /// A receipt. type Receipt: Receipt; }