From f590134ee8aee374e85aea2b9a159b2a64bf5b68 Mon Sep 17 00:00:00 2001 From: Kris Nuttycombe Date: Thu, 3 Feb 2022 13:55:16 -0700 Subject: [PATCH] Add transaction::Transaction::into_data --- zcash_primitives/src/transaction/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zcash_primitives/src/transaction/mod.rs b/zcash_primitives/src/transaction/mod.rs index f4f3bce04..a4d11fcf3 100644 --- a/zcash_primitives/src/transaction/mod.rs +++ b/zcash_primitives/src/transaction/mod.rs @@ -534,6 +534,10 @@ impl Transaction { Transaction { txid, data } } + pub fn into_data(self) -> TransactionData { + self.data + } + pub fn txid(&self) -> TxId { self.txid }