Return orchard address from UA

This commit is contained in:
Aditya Kulkarni 2022-08-17 08:10:06 -05:00
parent 276bcc34f5
commit 1fad73d5b3
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()