diff --git a/src/apps/cardano/get_address.py b/src/apps/cardano/get_address.py index de3c0129e..692a21eca 100644 --- a/src/apps/cardano/get_address.py +++ b/src/apps/cardano/get_address.py @@ -2,7 +2,7 @@ from trezor import log, ui, wire from trezor.crypto import bip32 from trezor.messages.CardanoAddress import CardanoAddress -from .address import _break_address_n_to_lines, derive_address_and_node +from .address import derive_address_and_node from .ui import show_swipable_with_confirmation from apps.common import storage @@ -26,11 +26,5 @@ async def cardano_get_address(ctx, msg): ctx, address, "Export address", icon=ui.ICON_SEND, icon_color=ui.GREEN ): raise wire.ActionCancelled("Exporting cancelled") - else: - lines = _break_address_n_to_lines(msg.address_n) - if not await show_swipable_with_confirmation( - ctx, lines, "For BIP32 path", icon=ui.ICON_SEND, icon_color=ui.GREEN - ): - raise wire.ActionCancelled("Exporting cancelled") return CardanoAddress(address=address) diff --git a/src/apps/cardano/get_public_key.py b/src/apps/cardano/get_public_key.py index bf1fddcef..49b7a0c6f 100644 --- a/src/apps/cardano/get_public_key.py +++ b/src/apps/cardano/get_public_key.py @@ -5,12 +5,7 @@ from trezor.crypto import bip32 from trezor.messages.CardanoPublicKey import CardanoPublicKey from trezor.messages.HDNodeType import HDNodeType -from .address import ( - _break_address_n_to_lines, - _derive_hd_passphrase, - derive_address_and_node, -) -from .ui import show_swipable_with_confirmation +from .address import _derive_hd_passphrase, derive_address_and_node from apps.common import seed, storage @@ -28,11 +23,6 @@ async def cardano_get_public_key(ctx, msg): mnemonic = None root_node = None - lines = ["For BIP32 path: ", ""] - lines.extend(_break_address_n_to_lines(msg.address_n)) - if not await show_swipable_with_confirmation(ctx, lines, "Export xpub key"): - raise wire.ActionCancelled("Exporting cancelled") - return key