diff --git a/crates/primitives/src/alloy_compat.rs b/crates/primitives/src/alloy_compat.rs index 7c06b460fa68..83d160f9face 100644 --- a/crates/primitives/src/alloy_compat.rs +++ b/crates/primitives/src/alloy_compat.rs @@ -5,29 +5,8 @@ use alloc::string::ToString; use alloy_consensus::TxEnvelope; use alloy_network::{AnyRpcTransaction, AnyTxEnvelope}; use alloy_serde::WithOtherFields; -// -// impl TryFrom for SealedBlock -// where -// B: Block>, -// T: TryFrom, -// { -// type Error = alloy_rpc_types::ConversionError; -// -// fn try_from(block: AnyRpcBlock) -> Result { -// let block = block.inner; -// let block_hash = block.header.hash; -// let block = block.try_map_transactions(|tx| tx.try_into())?; -// -// Ok(Self::new( -// SealedHeader::new(block.header.inner.into_header_with_defaults(), block_hash), -// BlockBody { -// transactions: block.transactions.into_transactions().collect(), -// ommers: Default::default(), -// withdrawals: block.withdrawals.map(|w| w.into_inner().into()), -// }, -// )) -// } -// } + +use op_alloy_consensus as _; impl TryFrom for TransactionSigned { type Error = alloy_rpc_types::ConversionError;