Skip to content

Commit 9a3dd90

Browse files
obrusvitibz
authored andcommitted
fixup! refactor(core): improved Stellar transaction signing interface for a more streamlined user experience.
1 parent b685298 commit 9a3dd90

File tree

2 files changed

+37
-5
lines changed

2 files changed

+37
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,7 @@ def confirm_stellar_tx(
14221422
is_sending_from_trezor_account: bool,
14231423
extra_items: Iterable[tuple[str, str]],
14241424
) -> Awaitable[None]:
1425-
return raise_if_not_confirmed(
1425+
return raise_if_cancelled(
14261426
trezorui_api.confirm_summary(
14271427
amount=None,
14281428
amount_label=None,

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

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -912,10 +912,6 @@ def _confirm_summary(
912912
account_items=account_props,
913913
account_title=account_title,
914914
extra_items=extra_props,
915-
account_items=account_items or None,
916-
account_title=account_title,
917-
extra_items=extra_items or None,
918-
>>>>>>> 152c1acc01 (refactor(core): improved Stellar transaction signing interface for a more streamlined user experience.)
919915
extra_title=extra_title or None,
920916
),
921917
br_name,
@@ -1147,7 +1143,43 @@ async def confirm_trade(
11471143
)
11481144
menu = Menu.root(menu_items, TR.send__cancel_sign)
11491145

1146+
<<<<<<< HEAD
11501147
await confirm_with_menu(trade_layout, menu, "confirm_trade")
1148+
=======
1149+
await confirm_with_menu(main_layout, menu, "confirm_payment_request")
1150+
1151+
for sell_amount, buy_amount, t_address, t_account, t_account_path in trades:
1152+
await confirm_trade(
1153+
TR.words__swap,
1154+
TR.words__assets,
1155+
sell_amount,
1156+
buy_amount,
1157+
t_address,
1158+
t_account,
1159+
t_account_path,
1160+
token_address,
1161+
)
1162+
1163+
account_items = []
1164+
if account:
1165+
account_items.append((TR.words__account, account))
1166+
if account_path:
1167+
account_items.append((TR.address_details__derivation_path, account_path))
1168+
account_items.append((TR.ethereum__approve_chain_id, chain_id))
1169+
1170+
await _confirm_summary(
1171+
None,
1172+
None,
1173+
maximum_fee,
1174+
TR.words__transaction_fee,
1175+
TR.words__title_summary,
1176+
account_items,
1177+
None,
1178+
fee_info_items,
1179+
TR.confirm_total__title_fee,
1180+
"confirm_payment_request",
1181+
)
1182+
>>>>>>> d79e5c62f1 (fixup! refactor(core): improved Stellar transaction signing interface for a more streamlined user experience.)
11511183

11521184
async def confirm_ethereum_staking_tx(
11531185
title: str,

0 commit comments

Comments
 (0)