From c3a8583903235196df21f3c03ff17ed1d20265cb Mon Sep 17 00:00:00 2001 From: Dmitry Demin Date: Mon, 11 Nov 2024 21:59:31 +0100 Subject: [PATCH] Add a method to return the inner value (IssueBundle) of IssueData wrapper --- zebra-chain/src/orchard_zsa/issuance.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/zebra-chain/src/orchard_zsa/issuance.rs b/zebra-chain/src/orchard_zsa/issuance.rs index d45f10253..4a3cb9689 100644 --- a/zebra-chain/src/orchard_zsa/issuance.rs +++ b/zebra-chain/src/orchard_zsa/issuance.rs @@ -27,6 +27,13 @@ use super::burn::ASSET_BASE_SIZE; #[derive(Clone, Debug, PartialEq, Eq)] pub struct IssueData(IssueBundle); +impl IssueData { + /// Returns a reference to the inner `IssueBundle`. + pub fn inner(&self) -> &IssueBundle { + &self.0 + } +} + impl From> for IssueData { fn from(inner: IssueBundle) -> Self { Self(inner)