mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-02-17 01:52:02 +00:00
apps/wallet: confirm OP_RETURN on display
This commit is contained in:
parent
4002ef2a49
commit
ba44a21a40
@ -15,6 +15,7 @@ def split_address(address):
|
|||||||
|
|
||||||
|
|
||||||
async def confirm_output(ctx, output, coin):
|
async def confirm_output(ctx, output, coin):
|
||||||
|
# TODO: handle OP_RETURN correctly
|
||||||
content = Text('Confirm output', ui.ICON_RESET,
|
content = Text('Confirm output', ui.ICON_RESET,
|
||||||
ui.BOLD, format_amount(output.amount, coin),
|
ui.BOLD, format_amount(output.amount, coin),
|
||||||
ui.NORMAL, 'to',
|
ui.NORMAL, 'to',
|
||||||
|
@ -176,7 +176,7 @@ async def sign_tx(tx: SignTx, root):
|
|||||||
raise SigningError(FailureType.ProcessError,
|
raise SigningError(FailureType.ProcessError,
|
||||||
'Only one change output is valid')
|
'Only one change output is valid')
|
||||||
change_out = txo.amount
|
change_out = txo.amount
|
||||||
elif txo.script_type != OutputScriptType.PAYTOOPRETURN:
|
else:
|
||||||
if not await confirm_output(txo, coin):
|
if not await confirm_output(txo, coin):
|
||||||
raise SigningError(FailureType.ActionCancelled,
|
raise SigningError(FailureType.ActionCancelled,
|
||||||
'Output cancelled')
|
'Output cancelled')
|
||||||
|
Loading…
Reference in New Issue
Block a user