Skip to content

Commit

Permalink
Upcast trait bound on BlockBody::Transaction to SignedTransaction (
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Nov 27, 2024
1 parent 42c24f0 commit db9b86a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions crates/primitives-traits/src/block/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
use alloc::{fmt, vec::Vec};

use alloy_consensus::Transaction;
use alloy_eips::eip4895::Withdrawals;

use crate::{FullSignedTx, InMemorySize, MaybeArbitrary, MaybeSerde};
use crate::{FullSignedTx, InMemorySize, MaybeArbitrary, MaybeSerde, SignedTransaction};

/// Helper trait that unifies all behaviour required by transaction to support full node operations.
pub trait FullBlockBody: BlockBody<Transaction: FullSignedTx> {}
Expand All @@ -29,7 +28,7 @@ pub trait BlockBody:
+ MaybeArbitrary
{
/// Ordered list of signed transactions as committed in block.
type Transaction: Transaction;
type Transaction: SignedTransaction;

/// Ommer header type.
type OmmerHeader;
Expand Down

0 comments on commit db9b86a

Please sign in to comment.