Skip to content

Commit ccd6a34

Browse files
committed
fixup! fixup! fixup! chore(core/eckhart): Update ETH approve flow
1 parent ce4ec89 commit ccd6a34

File tree

10 files changed

+7
-24
lines changed

10 files changed

+7
-24
lines changed

core/embed/rust/librust_qstr.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,6 @@ static void _librust_qstrs(void) {
745745
MP_QSTR_subprompt;
746746
MP_QSTR_subtext;
747747
MP_QSTR_subtitle;
748-
MP_QSTR_suite_sign;
749748
MP_QSTR_summary_br_code;
750749
MP_QSTR_summary_br_name;
751750
MP_QSTR_summary_items;

core/embed/rust/src/ui/api/firmware_micropython.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ extern "C" fn new_confirm_summary(n_args: usize, args: *const Obj, kwargs: *mut
387387
.get(Qstr::MP_QSTR_verb_cancel)
388388
.unwrap_or_else(|_| Obj::const_none())
389389
.try_into_option()?;
390-
let suite_sign: bool = kwargs.get_or(Qstr::MP_QSTR_suite_sign, false)?;
391390

392391
let layout = ModelUI::confirm_summary(
393392
amount,
@@ -400,7 +399,6 @@ extern "C" fn new_confirm_summary(n_args: usize, args: *const Obj, kwargs: *mut
400399
extra_items,
401400
extra_title,
402401
verb_cancel,
403-
suite_sign,
404402
)?;
405403
Ok(LayoutObj::new_root(layout)?.into())
406404
};
@@ -1439,7 +1437,6 @@ pub static mp_module_trezorui_api: Module = obj_module! {
14391437
/// extra_items: Iterable[tuple[str, str]] | None = None,
14401438
/// extra_title: str | None = None,
14411439
/// verb_cancel: str | None = None,
1442-
/// suite_sign: bool = False,
14431440
/// ) -> LayoutObj[UiResult]:
14441441
/// """Confirm summary of a transaction."""
14451442
Qstr::MP_QSTR_confirm_summary => obj_fn_kw!(0, new_confirm_summary).as_obj(),

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ impl FirmwareUI for UIBolt {
438438
extra_items: Option<Obj>,
439439
_extra_title: Option<TString<'static>>,
440440
verb_cancel: Option<TString<'static>>,
441-
_suite_sign: bool,
442441
) -> Result<impl LayoutMaybeTrace, Error> {
443442
let info_button: bool = account_items.is_some() || extra_items.is_some();
444443
let mut paragraphs = ParagraphVecShort::new();

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ impl FirmwareUI for UICaesar {
497497
extra_items: Option<Obj>,
498498
extra_title: Option<TString<'static>>,
499499
verb_cancel: Option<TString<'static>>,
500-
_suite_sign: bool,
501500
) -> Result<impl LayoutMaybeTrace, Error> {
502501
// collect available info pages
503502
let mut info_pages: Vec<(TString, Obj), 2> = Vec::new();

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,6 @@ impl FirmwareUI for UIDelizia {
368368
extra_items: Option<Obj>,
369369
extra_title: Option<TString<'static>>,
370370
verb_cancel: Option<TString<'static>>,
371-
_suite_sign: bool,
372371
) -> Result<impl LayoutMaybeTrace, Error> {
373372
let mut summary_params = ShowInfoParams::new(title.unwrap_or(TString::empty()))
374373
.with_menu_button()

core/embed/rust/src/ui/layout_eckhart/flow/confirm_summary.rs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ pub fn new_confirm_summary(
9999
extra_title: Option<TString<'static>>,
100100
extra_paragraphs: Option<ParagraphVecShort<'static>>,
101101
verb_cancel: Option<TString<'static>>,
102-
suite_sign: bool,
103102
) -> Result<SwipeFlow, error::Error> {
104103
// Summary
105104
let mut summary_paragraphs = ParagraphVecShort::new();
@@ -113,7 +112,7 @@ pub fn new_confirm_summary(
113112
.add(Paragraph::new(&theme::TEXT_SMALL_LIGHT, fee_label))
114113
.add(Paragraph::new(&theme::TEXT_MONO_MEDIUM_LIGHT, fee));
115114

116-
let mut screen_summary = TextScreen::new(
115+
let content_summary = TextScreen::new(
117116
summary_paragraphs
118117
.into_paragraphs()
119118
.with_placement(LinearPlacement::vertical().with_spacing(theme::PARAGRAPHS_SPACING)),
@@ -123,16 +122,12 @@ pub fn new_confirm_summary(
123122
Button::with_text(TR::instructions__hold_to_sign.into())
124123
.with_long_press(theme::CONFIRM_HOLD_DURATION)
125124
.styled(theme::button_confirm()),
126-
));
127-
128-
if suite_sign {
129-
screen_summary = screen_summary.with_hint(Hint::new_instruction(
130-
TR::send__send_in_the_app,
131-
Some(theme::ICON_INFO),
132-
))
133-
}
134-
135-
let content_summary = screen_summary.map(|msg| match msg {
125+
))
126+
.with_hint(Hint::new_instruction(
127+
TR::send__send_in_the_app,
128+
Some(theme::ICON_INFO),
129+
))
130+
.map(|msg| match msg {
136131
TextScreenMsg::Confirmed => Some(FlowMsg::Confirmed),
137132
TextScreenMsg::Cancelled => Some(FlowMsg::Cancelled),
138133
TextScreenMsg::Menu => Some(FlowMsg::Info),

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,6 @@ impl FirmwareUI for UIEckhart {
312312
extra_items: Option<Obj>,
313313
extra_title: Option<TString<'static>>,
314314
verb_cancel: Option<TString<'static>>,
315-
suite_sign: bool,
316315
) -> Result<impl LayoutMaybeTrace, Error> {
317316
// collect available info
318317
let account_paragraphs = if let Some(items) = account_items {
@@ -351,7 +350,6 @@ impl FirmwareUI for UIEckhart {
351350
extra_title,
352351
extra_paragraphs,
353352
verb_cancel,
354-
suite_sign,
355353
)?;
356354
Ok(flow)
357355
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ pub trait FirmwareUI {
143143
extra_items: Option<Obj>, // TODO: replace Obj
144144
extra_title: Option<TString<'static>>,
145145
verb_cancel: Option<TString<'static>>,
146-
suite_sign: bool,
147146
) -> Result<impl LayoutMaybeTrace, Error>;
148147

149148
fn confirm_with_info(

core/mocks/generated/trezorui_api.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ def confirm_summary(
287287
extra_items: Iterable[tuple[str, str]] | None = None,
288288
extra_title: str | None = None,
289289
verb_cancel: str | None = None,
290-
suite_sign: bool = False,
291290
) -> LayoutObj[UiResult]:
292291
"""Confirm summary of a transaction."""
293292

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@ def confirm_total(
766766
account_items=account_items or None,
767767
extra_items=fee_items or None,
768768
extra_title=TR.confirm_total__title_fee,
769-
suite_sign=True,
770769
),
771770
br_name,
772771
br_code,

0 commit comments

Comments
 (0)