fix(xmr): fixes #2453, incorrect address display

pull/2481/head
Dusan Klinec 2 years ago committed by matejcik
parent 16b0ea00cd
commit 2fe40f70a6

@ -0,0 +1 @@
Fix XMR primary address display

@ -25,7 +25,11 @@ async def get_address(
creds = misc.get_creds(keychain, msg.address_n, msg.network_type)
addr = creds.address
have_subaddress = msg.account is not None and msg.minor is not None
have_subaddress = (
msg.account is not None
and msg.minor is not None
and (msg.account, msg.minor) != (0, 0)
)
have_payment_id = msg.payment_id is not None
if (msg.account is None) != (msg.minor is None):

Loading…
Cancel
Save