mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: add BlockBody associated type helpers (#13451)
This commit is contained in:
@ -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<N> = <N as BlockBody>::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<N> = <N as BlockBody>::OmmerHeader;
|
||||
|
||||
Reference in New Issue
Block a user