mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-18 05:28:40 +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.BOLD, format_amount(value, token, chain_id),
|
||||||
ui.NORMAL, 'to',
|
ui.NORMAL, 'to',
|
||||||
ui.MONO, *split_address(str_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
|
@unimport
|
||||||
@ -32,7 +32,7 @@ async def confirm_data(ctx, data, data_total): # todo wording
|
|||||||
content = Text('Confirm data:', ui.ICON_RESET,
|
content = Text('Confirm data:', ui.ICON_RESET,
|
||||||
ui.MONO, str_data,
|
ui.MONO, str_data,
|
||||||
'Total: ', str(data_total) + 'B')
|
'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):
|
def split_address(address):
|
||||||
|
Loading…
Reference in New Issue
Block a user