Skip to content

Commit 6f4d660

Browse files
committed
fix(caesar): chunkify in confirm_value with items
- this solution fixes the Solana transaction signing flow
1 parent d1003e6 commit 6f4d660

2 files changed

Lines changed: 18 additions & 8 deletions

File tree

core/embed/rust/src/ui/layout_caesar/ui_firmware.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ impl FirmwareUI for UICaesar {
132132
};
133133
let pages = FlowPages::new(get_page, 1);
134134

135-
let obj = LayoutObj::new(Flow::new(pages))?;
135+
let obj = LayoutObj::new(Flow::new(pages).with_menu(info_button))?;
136136
Ok(obj)
137137
}
138138

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

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -996,13 +996,23 @@ def confirm_value(
996996

997997
from trezor.ui.layouts.menu import Details, Menu, confirm_with_menu
998998

999-
main = trezorui_api.confirm_with_info(
1000-
title=title,
1001-
items=((value, False),),
1002-
verb=verb or TR.buttons__confirm,
1003-
verb_info=INFO_ICON,
1004-
external_menu=True,
1005-
)
999+
if chunkify:
1000+
main = trezorui_api.confirm_address(
1001+
title=title,
1002+
address=value,
1003+
address_label=None,
1004+
verb=verb or TR.buttons__confirm,
1005+
info_button=True,
1006+
chunkify=chunkify,
1007+
)
1008+
else:
1009+
main = trezorui_api.confirm_with_info(
1010+
title=title,
1011+
items=((value, False),),
1012+
verb=verb or TR.buttons__confirm,
1013+
verb_info=INFO_ICON,
1014+
external_menu=True,
1015+
)
10061016

10071017
def item_factory(
10081018
info_title: str, info_value: str

0 commit comments

Comments
 (0)