Skip to content

Commit

Permalink
Add getter method for Bundle.burn field (#58)
Browse files Browse the repository at this point in the history
- Add getter method for Bundle.burn field
  • Loading branch information
dmidem authored and Dmitry Demin committed Jun 26, 2023
1 parent 5efbeea commit 743f749
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ impl<T: Authorization, V> Bundle<T, V> {
&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
Expand Down

0 comments on commit 743f749

Please sign in to comment.