Skip to content

Commit

Permalink
fix(xmr): fixes #2453, incorrect address display
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 authored and matejcik committed Sep 9, 2022
1 parent 16b0ea0 commit 2fe40f7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/.changelog.d/2453.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix XMR primary address display
6 changes: 5 additions & 1 deletion core/src/apps/monero/get_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2fe40f7

Please sign in to comment.