mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +00:00
fix(xmr): fixes #2453, incorrect address display
This commit is contained in:
parent
16b0ea00cd
commit
2fe40f70a6
1
core/.changelog.d/2453.fixed
Normal file
1
core/.changelog.d/2453.fixed
Normal file
@ -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)
|
creds = misc.get_creds(keychain, msg.address_n, msg.network_type)
|
||||||
addr = creds.address
|
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
|
have_payment_id = msg.payment_id is not None
|
||||||
|
|
||||||
if (msg.account is None) != (msg.minor is None):
|
if (msg.account is None) != (msg.minor is None):
|
||||||
|
Loading…
Reference in New Issue
Block a user