From 297f50783bdea6c73e84ff51c9607bf3cd279559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Vejpustek?= Date: Thu, 14 Nov 2024 14:20:55 +0100 Subject: [PATCH] feat(core): display sortedmulti --- core/src/apps/bitcoin/get_address.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/src/apps/bitcoin/get_address.py b/core/src/apps/bitcoin/get_address.py index 9bbd8e845e..e774c38784 100644 --- a/core/src/apps/bitcoin/get_address.py +++ b/core/src/apps/bitcoin/get_address.py @@ -1,5 +1,7 @@ from typing import TYPE_CHECKING +from trezor.enums import MultisigPubkeysOrder + from .keychain import with_keychain if TYPE_CHECKING: @@ -105,13 +107,18 @@ async def get_address(msg: GetAddress, keychain: Keychain, coin: CoinInfo) -> Ad await confirm_multisig_warning() + if multisig.pubkeys_order == MultisigPubkeysOrder.LEXICOGRAPHIC: + account = f"Multisig {multisig.m} of {len(pubnodes)}\n(sorted)" + else: + account = f"Multisig {multisig.m} of {len(pubnodes)}" + await show_address( address_short, case_sensitive=address_case_sensitive, path=path, multisig_index=multisig_index, xpubs=_get_xpubs(coin, multisig_xpub_magic, pubnodes), - account=f"Multisig {multisig.m} of {len(pubnodes)}", + account=account, chunkify=bool(msg.chunkify), ) else: