From d990fc62f974fbadac2e3069e045741428e3fbf2 Mon Sep 17 00:00:00 2001 From: Arsenii Kulikov Date: Fri, 13 Dec 2024 21:05:57 +0400 Subject: [PATCH] maybe --- crates/primitives/src/block.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/crates/primitives/src/block.rs b/crates/primitives/src/block.rs index cf953c4a9269..27431b5e6903 100644 --- a/crates/primitives/src/block.rs +++ b/crates/primitives/src/block.rs @@ -11,8 +11,7 @@ use derive_more::{Deref, DerefMut}; #[cfg(any(test, feature = "arbitrary"))] pub use reth_primitives_traits::test_utils::{generate_valid_header, valid_header_strategy}; use reth_primitives_traits::{ - serde_bincode_compat::SerdeBincodeCompat, BlockBody as _, InMemorySize, SignedTransaction, - Transaction, + BlockBody as _, InMemorySize, MaybeSerdeBincodeCompat, SignedTransaction, Transaction, }; use serde::{Deserialize, Serialize}; @@ -37,7 +36,7 @@ impl Default for Block { impl reth_primitives_traits::Block for Block where - T: SignedTransaction + Encodable + Decodable + SerdeBincodeCompat, + T: SignedTransaction + Encodable + Decodable + MaybeSerdeBincodeCompat, { type Header = Header; type Body = BlockBody; @@ -662,7 +661,7 @@ impl InMemorySize for BlockBody { impl reth_primitives_traits::BlockBody for BlockBody where - T: SignedTransaction + SerdeBincodeCompat, + T: SignedTransaction + MaybeSerdeBincodeCompat, { type Transaction = T; type OmmerHeader = Header;