From c697543af058cb0571710b21c1b8980ba83967e9 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Tue, 7 Jan 2025 00:19:11 +0100 Subject: [PATCH] chore: relax tryfrom impl (#13691) --- crates/primitives/src/alloy_compat.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 {