From 90d3a91477d84308aafaf0863f9e31a51eec8c77 Mon Sep 17 00:00:00 2001 From: pauldelucia Date: Tue, 14 Jan 2025 12:28:45 +0700 Subject: [PATCH] feat: display payout address when withdrawing with owner key --- src/ui/identities/withdraw_from_identity_screen.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/ui/identities/withdraw_from_identity_screen.rs b/src/ui/identities/withdraw_from_identity_screen.rs index 47ff30e..c0b2e3d 100644 --- a/src/ui/identities/withdraw_from_identity_screen.rs +++ b/src/ui/identities/withdraw_from_identity_screen.rs @@ -139,6 +139,17 @@ impl WithdrawalScreen { ui.text_edit_singleline(&mut self.withdrawal_address); }); + } else { + ui.label(format!( + "Masternode payout address: {}", + match self + .identity + .masternode_payout_address(self.app_context.network) + { + Some(address) => address.to_string(), + None => "No masternode payout address".to_string(), + } + )); } }