mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(sdk): Add adapter type for NodePrimitives::Receipt (#12674)
This commit is contained in:
@ -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"))]
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user