1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-13 09:58:09 +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( def flow_confirm_output_contact(
*, *,
title: str, title: str,
subtitle: str,
contact_label: str, contact_label: str,
address: str, address: str,
amount: str, amount: str,

View File

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