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

apps.ethereum: don't use ButtonRequestType.ConfirmOutput for compatibility with T1

This commit is contained in:
Pavol Rusnak 2018-01-11 23:11:13 +01:00
parent c06ec002a3
commit af93c7299d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -14,7 +14,7 @@ async def confirm_tx(ctx, to, value, chain_id, token=None): # todo wording
ui.BOLD, format_amount(value, token, chain_id),
ui.NORMAL, 'to',
ui.MONO, *split_address(str_to))
return await confirm(ctx, content, ButtonRequestType.ConfirmOutput)
return await confirm(ctx, content, ButtonRequestType.SignTx) # we use SignTx, not ConfirmOutput, for compatibility with T1
@unimport
@ -32,7 +32,7 @@ async def confirm_data(ctx, data, data_total): # todo wording
content = Text('Confirm data:', ui.ICON_RESET,
ui.MONO, str_data,
'Total: ', str(data_total) + 'B')
return await confirm(ctx, content, ButtonRequestType.ConfirmOutput)
return await confirm(ctx, content, ButtonRequestType.SignTx) # we use SignTx, not ConfirmOutput, for compatibility with T1
def split_address(address):