From 2b21bcf42546746bc5d4581c562f49b36071e3a7 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 19 Nov 2024 18:44:10 +0100 Subject: [PATCH] chore(sdk): Add adapter type for `NodePrimitives::Receipt` (#12674) --- crates/primitives-traits/src/lib.rs | 2 +- crates/primitives-traits/src/node.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/primitives-traits/src/lib.rs b/crates/primitives-traits/src/lib.rs index 819825d635..79dff4ae36 100644 --- a/crates/primitives-traits/src/lib.rs +++ b/crates/primitives-traits/src/lib.rs @@ -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"))] diff --git a/crates/primitives-traits/src/node.rs b/crates/primitives-traits/src/node.rs index c11a19a105..180920d393 100644 --- a/crates/primitives-traits/src/node.rs +++ b/crates/primitives-traits/src/node.rs @@ -73,3 +73,6 @@ where type TxType = T::TxType; type Receipt = T::Receipt; } + +/// Helper adapter type for accessing [`NodePrimitives`] receipt type. +pub type ReceiptTy = ::Receipt;