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

fix(core/ui): fix cancel in ethereum sign tx flow

[no changelog]
This commit is contained in:
Ioan Bizău 2024-07-25 16:11:34 +02:00 committed by Ioan Bizău
parent 888e384f79
commit 53799cdee8

View File

@ -980,17 +980,6 @@ if not utils.BITCOIN_ONLY:
br_code: ButtonRequestType = ButtonRequestType.SignTx, br_code: ButtonRequestType = ButtonRequestType.SignTx,
chunkify: bool = False, chunkify: bool = False,
) -> None: ) -> None:
total_layout = RustLayout(
trezorui2.confirm_total(
title=TR.words__title_summary,
items=[
(f"{TR.words__amount}:", total_amount),
(TR.send__maximum_fee, maximum_fee),
],
info_button=True,
cancel_arrow=True,
)
)
info_layout = RustLayout( info_layout = RustLayout(
trezorui2.show_info_with_cancel( trezorui2.show_info_with_cancel(
title=TR.confirm_total__title_fee, title=TR.confirm_total__title_fee,
@ -1010,6 +999,17 @@ if not utils.BITCOIN_ONLY:
) )
try: try:
total_layout = RustLayout(
trezorui2.confirm_total(
title=TR.words__title_summary,
items=[
(f"{TR.words__amount}:", total_amount),
(TR.send__maximum_fee, maximum_fee),
],
info_button=True,
cancel_arrow=True,
)
)
total_layout.request_complete_repaint() total_layout.request_complete_repaint()
await raise_if_not_confirmed( await raise_if_not_confirmed(
with_info(total_layout, info_layout, br_name, br_code) with_info(total_layout, info_layout, br_name, br_code)