Skip to content

Commit

Permalink
chore: relax tryfrom impl (#13691)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jan 6, 2025
1 parent 28761db commit c697543
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/primitives/src/alloy_compat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<AnyRpcBlock> for SealedBlock {
impl<T> TryFrom<AnyRpcBlock> for SealedBlock<Header, BlockBody<T>>
where
T: TryFrom<AnyRpcTransaction, Error = alloy_rpc_types::ConversionError>,
{
type Error = alloy_rpc_types::ConversionError;

fn try_from(block: AnyRpcBlock) -> Result<Self, Self::Error> {
Expand Down

0 comments on commit c697543

Please sign in to comment.