From 244aabe0c6fc24b6c095ab8d323f530c96f42e81 Mon Sep 17 00:00:00 2001 From: Dmitry Demin Date: Tue, 9 May 2023 10:09:48 +0200 Subject: [PATCH] Add getter method for Bundle.burn field --- src/bundle.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bundle.rs b/src/bundle.rs index d7a75875b..c702d8655 100644 --- a/src/bundle.rs +++ b/src/bundle.rs @@ -206,6 +206,11 @@ impl Bundle { &self.value_balance } + /// Returns assets intended for burning + pub fn burn(&self) -> &Vec<(AssetBase, V)> { + &self.burn + } + /// Returns the root of the Orchard commitment tree that this bundle commits to. pub fn anchor(&self) -> &Anchor { &self.anchor