diff --git a/crates/evm/execution-types/src/chain.rs b/crates/evm/execution-types/src/chain.rs index f94e84b173..4df08987dd 100644 --- a/crates/evm/execution-types/src/chain.rs +++ b/crates/evm/execution-types/src/chain.rs @@ -374,9 +374,11 @@ impl Chain { /// Wrapper type for `blocks` display in `Chain` #[derive(Debug)] -pub struct DisplayBlocksChain<'a>(pub &'a BTreeMap); +pub struct DisplayBlocksChain<'a, B: reth_primitives_traits::Block>( + pub &'a BTreeMap>, +); -impl fmt::Display for DisplayBlocksChain<'_> { +impl fmt::Display for DisplayBlocksChain<'_, B> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let mut list = f.debug_list(); let mut values = self.0.values().map(|block| block.num_hash());