diff --git a/crates/primitives/src/alloy_compat.rs b/crates/primitives/src/alloy_compat.rs index fc83e6622e11..888876520830 100644 --- a/crates/primitives/src/alloy_compat.rs +++ b/crates/primitives/src/alloy_compat.rs @@ -2,13 +2,16 @@ use crate::{BlockBody, SealedBlock, Transaction, TransactionSigned}; use alloc::string::ToString; -use alloy_consensus::TxEnvelope; +use alloy_consensus::{Header, TxEnvelope}; use alloy_network::{AnyRpcBlock, AnyRpcTransaction, AnyTxEnvelope}; use alloy_serde::WithOtherFields; use op_alloy_rpc_types as _; use reth_primitives_traits::SealedHeader; -impl TryFrom for SealedBlock { +impl TryFrom for SealedBlock> +where + T: TryFrom, +{ type Error = alloy_rpc_types::ConversionError; fn try_from(block: AnyRpcBlock) -> Result {