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:
parent
38977ac0d9
commit
4e50e642de
@ -526,6 +526,7 @@ def flow_confirm_output(
|
||||
def flow_confirm_output_contact(
|
||||
*,
|
||||
title: str,
|
||||
subtitle: str,
|
||||
contact_label: str,
|
||||
address: str,
|
||||
amount: str,
|
||||
|
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user