mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
fix(core/ui): T3T1: wrong XPUB title
[no changelog]
This commit is contained in:
parent
b868ccbbdd
commit
3760dd307c
@ -142,7 +142,7 @@ pub extern "C" fn new_get_address(n_args: usize, args: *const Obj, kwargs: *mut
|
|||||||
|
|
||||||
impl GetAddress {
|
impl GetAddress {
|
||||||
fn new_obj(_args: &[Obj], kwargs: &Map) -> Result<Obj, error::Error> {
|
fn new_obj(_args: &[Obj], kwargs: &Map) -> Result<Obj, error::Error> {
|
||||||
let title: TString = "Receive address".into(); // TODO: address__title_receive_address w/o uppercase
|
let title: TString = kwargs.get(Qstr::MP_QSTR_title)?.try_into()?;
|
||||||
let description: Option<TString> =
|
let description: Option<TString> =
|
||||||
kwargs.get(Qstr::MP_QSTR_description)?.try_into_option()?;
|
kwargs.get(Qstr::MP_QSTR_description)?.try_into_option()?;
|
||||||
let extra: Option<TString> = kwargs.get(Qstr::MP_QSTR_extra)?.try_into_option()?;
|
let extra: Option<TString> = kwargs.get(Qstr::MP_QSTR_extra)?.try_into_option()?;
|
||||||
|
@ -1826,6 +1826,7 @@ pub static mp_module_trezorui2: Module = obj_module! {
|
|||||||
/// def flow_get_address(
|
/// def flow_get_address(
|
||||||
/// *,
|
/// *,
|
||||||
/// address: str | bytes,
|
/// address: str | bytes,
|
||||||
|
/// title: str,
|
||||||
/// description: str | None,
|
/// description: str | None,
|
||||||
/// extra: str | None,
|
/// extra: str | None,
|
||||||
/// chunkify: bool,
|
/// chunkify: bool,
|
||||||
|
@ -547,6 +547,7 @@ def show_wait_text(message: str, /) -> LayoutObj[None]:
|
|||||||
def flow_get_address(
|
def flow_get_address(
|
||||||
*,
|
*,
|
||||||
address: str | bytes,
|
address: str | bytes,
|
||||||
|
title: str,
|
||||||
description: str | None,
|
description: str | None,
|
||||||
extra: str | None,
|
extra: str | None,
|
||||||
chunkify: bool,
|
chunkify: bool,
|
||||||
|
@ -469,6 +469,7 @@ async def show_address(
|
|||||||
RustLayout(
|
RustLayout(
|
||||||
trezorui2.flow_get_address(
|
trezorui2.flow_get_address(
|
||||||
address=address,
|
address=address,
|
||||||
|
title=title or TR.address__title_receive_address,
|
||||||
description=network or "",
|
description=network or "",
|
||||||
extra=None,
|
extra=None,
|
||||||
chunkify=chunkify,
|
chunkify=chunkify,
|
||||||
|
@ -644,7 +644,7 @@ class InputFlowShowXpubQRCode(InputFlowBase):
|
|||||||
br = yield
|
br = yield
|
||||||
layout = self.debug.wait_layout()
|
layout = self.debug.wait_layout()
|
||||||
|
|
||||||
TR.assert_in(layout.title(), "address__title_receive_address")
|
assert layout.title() in TR.translate("address__public_key") + ["XPUB"]
|
||||||
|
|
||||||
self.debug.click(buttons.CORNER_BUTTON, wait=True)
|
self.debug.click(buttons.CORNER_BUTTON, wait=True)
|
||||||
assert "VerticalMenu" in self.all_components()
|
assert "VerticalMenu" in self.all_components()
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user