Skip to content

Commit 53799cd

Browse files
committed
fix(core/ui): fix cancel in ethereum sign tx flow
[no changelog]
1 parent 888e384 commit 53799cd

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

core/src/trezor/ui/layouts/mercury/__init__.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -980,17 +980,6 @@ async def confirm_ethereum_tx(
980980
br_code: ButtonRequestType = ButtonRequestType.SignTx,
981981
chunkify: bool = False,
982982
) -> None:
983-
total_layout = RustLayout(
984-
trezorui2.confirm_total(
985-
title=TR.words__title_summary,
986-
items=[
987-
(f"{TR.words__amount}:", total_amount),
988-
(TR.send__maximum_fee, maximum_fee),
989-
],
990-
info_button=True,
991-
cancel_arrow=True,
992-
)
993-
)
994983
info_layout = RustLayout(
995984
trezorui2.show_info_with_cancel(
996985
title=TR.confirm_total__title_fee,
@@ -1010,6 +999,17 @@ async def confirm_ethereum_tx(
1010999
)
10111000

10121001
try:
1002+
total_layout = RustLayout(
1003+
trezorui2.confirm_total(
1004+
title=TR.words__title_summary,
1005+
items=[
1006+
(f"{TR.words__amount}:", total_amount),
1007+
(TR.send__maximum_fee, maximum_fee),
1008+
],
1009+
info_button=True,
1010+
cancel_arrow=True,
1011+
)
1012+
)
10131013
total_layout.request_complete_repaint()
10141014
await raise_if_not_confirmed(
10151015
with_info(total_layout, info_layout, br_name, br_code)

0 commit comments

Comments
 (0)