mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-12 14:16:06 +00:00
chore(eckhart): update address warnings
This commit is contained in:
parent
2b06ba21bd
commit
577836682e
@ -129,6 +129,8 @@ def confirm_path_warning(
|
|||||||
"path_warning",
|
"path_warning",
|
||||||
description,
|
description,
|
||||||
value=path,
|
value=path,
|
||||||
|
title=TR.words__pay_attention,
|
||||||
|
menu_title=TR.words__receive,
|
||||||
verb_cancel=TR.words__cancel_and_exit,
|
verb_cancel=TR.words__cancel_and_exit,
|
||||||
br_code=ButtonRequestType.UnknownDerivationPath,
|
br_code=ButtonRequestType.UnknownDerivationPath,
|
||||||
)
|
)
|
||||||
@ -138,7 +140,8 @@ def confirm_multisig_warning() -> Awaitable[None]:
|
|||||||
return show_danger(
|
return show_danger(
|
||||||
"warning_multisig",
|
"warning_multisig",
|
||||||
TR.send__receiving_to_multisig,
|
TR.send__receiving_to_multisig,
|
||||||
title=TR.words__important,
|
title=TR.words__pay_attention,
|
||||||
|
menu_title=TR.words__receive,
|
||||||
verb_cancel=TR.words__cancel_and_exit,
|
verb_cancel=TR.words__cancel_and_exit,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -146,8 +149,9 @@ def confirm_multisig_warning() -> Awaitable[None]:
|
|||||||
def confirm_multisig_different_paths_warning() -> Awaitable[None]:
|
def confirm_multisig_different_paths_warning() -> Awaitable[None]:
|
||||||
return raise_if_not_confirmed(
|
return raise_if_not_confirmed(
|
||||||
trezorui_api.show_danger(
|
trezorui_api.show_danger(
|
||||||
title=f"{TR.words__important}!",
|
title=TR.words__pay_attention,
|
||||||
description="Using different paths for different XPUBs.",
|
description="Using different paths for different XPUBs.",
|
||||||
|
menu_title=TR.words__receive,
|
||||||
),
|
),
|
||||||
"warning_multisig_different_paths",
|
"warning_multisig_different_paths",
|
||||||
br_code=ButtonRequestType.Warning,
|
br_code=ButtonRequestType.Warning,
|
||||||
@ -336,6 +340,7 @@ def show_danger(
|
|||||||
content: str,
|
content: str,
|
||||||
value: str | None = None,
|
value: str | None = None,
|
||||||
title: str | None = None,
|
title: str | None = None,
|
||||||
|
menu_title: str | None = None,
|
||||||
verb_cancel: str | None = None,
|
verb_cancel: str | None = None,
|
||||||
br_code: ButtonRequestType = ButtonRequestType.Warning,
|
br_code: ButtonRequestType = ButtonRequestType.Warning,
|
||||||
) -> Awaitable[None]:
|
) -> Awaitable[None]:
|
||||||
@ -346,6 +351,7 @@ def show_danger(
|
|||||||
title=title,
|
title=title,
|
||||||
description=content,
|
description=content,
|
||||||
value=(value or ""),
|
value=(value or ""),
|
||||||
|
menu_title=menu_title,
|
||||||
verb_cancel=verb_cancel,
|
verb_cancel=verb_cancel,
|
||||||
),
|
),
|
||||||
br_name,
|
br_name,
|
||||||
|
Loading…
Reference in New Issue
Block a user