1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 07:28:10 +00:00

fix(core): fix title shown for multisig address

This commit is contained in:
Martin Milata 2021-03-04 17:33:14 +01:00
parent d211e3af07
commit ee2ec85983

View File

@ -248,12 +248,12 @@ async def show_address(
if is_multisig:
for i, xpub in enumerate(xpubs):
cancel = "Next" if i < len(xpubs) - 1 else "Address"
desc = "XPUB #%d" % (i + 1)
desc += " (yours)" if i == multisig_index else " (cosigner)"
desc_xpub = "XPUB #%d" % (i + 1)
desc_xpub += " (yours)" if i == multisig_index else " (cosigner)"
if (
await interact(
ctx,
_show_xpub(xpub, desc=desc, cancel=cancel),
_show_xpub(xpub, desc=desc_xpub, cancel=cancel),
"show_xpub",
ButtonRequestType.PublicKey,
)