diff --git a/crates/primitives-traits/src/block/body.rs b/crates/primitives-traits/src/block/body.rs index 4546e85542..8c8804b593 100644 --- a/crates/primitives-traits/src/block/body.rs +++ b/crates/primitives-traits/src/block/body.rs @@ -98,3 +98,11 @@ pub trait BlockBody: self.encoded_2718_transactions_iter().map(Into::into).collect() } } + +/// This is a helper alias to make it easy to refer to the inner `Transaction` associated type of a +/// given type that implements [`BlockBody`]. +pub type BodyTx = ::Transaction; + +/// This is a helper alias to make it easy to refer to the inner `OmmerHeader` associated type of a +/// given type that implements [`BlockBody`]. +pub type BodyOmmer = ::OmmerHeader;