Upcast trait bound on BlockBody::Transaction to SignedTransaction (#12903)

This commit is contained in:
Emilia Hane
2024-11-27 12:56:33 +01:00
committed by GitHub
parent 42c24f07d9
commit db9b86a7d6

View File

@ -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> {}
@ -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;