Merge pull request #607 from adityapk00/oa

Return orchard address from UA
This commit is contained in:
str4d 2022-08-18 23:32:19 +01:00 committed by GitHub
commit 85a1522c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -93,6 +93,11 @@ impl UnifiedAddress {
}
}
/// Returns the Orchard receiver within this Unified Address, if any.
pub fn orchard(&self) -> Option<&orchard::Address> {
self.orchard.as_ref()
}
/// Returns the Sapling receiver within this Unified Address, if any.
pub fn sapling(&self) -> Option<&PaymentAddress> {
self.sapling.as_ref()