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

fixup! feat(contacts): improve confirm_new_contact

This commit is contained in:
obrusvit 2024-12-11 15:37:40 +01:00
parent 38977ac0d9
commit 4e50e642de
2 changed files with 4 additions and 2 deletions

View File

@ -526,6 +526,7 @@ def flow_confirm_output(
def flow_confirm_output_contact(
*,
title: str,
subtitle: str,
contact_label: str,
address: str,
amount: str,

View File

@ -44,9 +44,10 @@ async def sign_message(
if "/" in message_decoded:
# message will have format <label>/<npub>
# hackathon simplification
label, contact_id = message_decoded.split('/')
await confirm_new_contact(
label=message_decoded,
contact_id=address,
label=label,
contact_id=contact_id,
account=account,
path=path,
chunkify=bool(msg.chunkify),