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:
parent
c06ec002a3
commit
af93c7299d
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user