chore(sdk): Add adapter type for NodePrimitives::Receipt (#12674)

This commit is contained in:
Emilia Hane
2024-11-19 18:44:10 +01:00
committed by GitHub
parent d49f91378b
commit 2b21bcf425
2 changed files with 4 additions and 1 deletions

View File

@ -80,7 +80,7 @@ pub use size::InMemorySize;
/// Node traits
pub mod node;
pub use node::{FullNodePrimitives, NodePrimitives};
pub use node::{FullNodePrimitives, NodePrimitives, ReceiptTy};
/// Helper trait that requires arbitrary implementation if the feature is enabled.
#[cfg(any(feature = "test-utils", feature = "arbitrary"))]

View File

@ -73,3 +73,6 @@ where
type TxType = T::TxType;
type Receipt = T::Receipt;
}
/// Helper adapter type for accessing [`NodePrimitives`] receipt type.
pub type ReceiptTy<N> = <N as NodePrimitives>::Receipt;