Add getter method for Bundle.burn field (#58)

- Add getter method for Bundle.burn field
This commit is contained in:
Dmitry Demin 2023-05-10 10:23:48 +03:00 committed by GitHub
parent ea0fd59ec7
commit 9a35108155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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