1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 04:18:10 +00:00

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

This commit is contained in:
Dusan Klinec 2022-08-31 02:16:57 +02:00 committed by matejcik
parent 16b0ea00cd
commit 2fe40f70a6
2 changed files with 6 additions and 1 deletions

View File

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

View File

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