From f4ea087ec01f7263420b6df695145121cac920fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ioan=20Biz=C4=83u?= Date: Mon, 18 Nov 2024 12:59:46 +0100 Subject: [PATCH] fixup! fixup! refactor(core): use warning_hi_prio in ETH flow --- core/src/apps/ethereum/layout.py | 4 ++-- core/src/trezor/ui/layouts/mercury/__init__.py | 2 +- core/src/trezor/ui/layouts/tr/__init__.py | 2 +- core/src/trezor/ui/layouts/tt/__init__.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/apps/ethereum/layout.py b/core/src/apps/ethereum/layout.py index 99f7af07fc..e7bf60b8c9 100644 --- a/core/src/apps/ethereum/layout.py +++ b/core/src/apps/ethereum/layout.py @@ -144,9 +144,9 @@ async def require_confirm_claim( async def require_confirm_unknown_token(address_bytes: bytes) -> None: from ubinascii import hexlify - from trezor.ui.layouts import confirm_address, confirm_unknown_contract_warning + from trezor.ui.layouts import confirm_address, confirm_ethereum_unknown_contract_warning - await confirm_unknown_contract_warning() + await confirm_ethereum_unknown_contract_warning() contract_address_hex = "0x" + hexlify(address_bytes).decode() await confirm_address( diff --git a/core/src/trezor/ui/layouts/mercury/__init__.py b/core/src/trezor/ui/layouts/mercury/__init__.py index c977e39e07..c4456fd149 100644 --- a/core/src/trezor/ui/layouts/mercury/__init__.py +++ b/core/src/trezor/ui/layouts/mercury/__init__.py @@ -727,7 +727,7 @@ if not utils.BITCOIN_ONLY: ask_pagination=True, ) - def confirm_unknown_contract_warning() -> Awaitable[None]: + def confirm_ethereum_unknown_contract_warning() -> Awaitable[None]: return raise_if_not_confirmed( trezorui2.flow_warning_hi_prio( title=TR.words__warning, diff --git a/core/src/trezor/ui/layouts/tr/__init__.py b/core/src/trezor/ui/layouts/tr/__init__.py index 232a3d7120..a9b1bbc4e8 100644 --- a/core/src/trezor/ui/layouts/tr/__init__.py +++ b/core/src/trezor/ui/layouts/tr/__init__.py @@ -818,7 +818,7 @@ if not utils.BITCOIN_ONLY: ask_pagination=True, ) - def confirm_unknown_contract_warning() -> Awaitable[ui.UiResult]: + def confirm_ethereum_unknown_contract_warning() -> Awaitable[ui.UiResult]: return show_warning( "unknown_contract_warning", TR.ethereum__unknown_contract_address, diff --git a/core/src/trezor/ui/layouts/tt/__init__.py b/core/src/trezor/ui/layouts/tt/__init__.py index 93ca8854ee..7bc6e5bf20 100644 --- a/core/src/trezor/ui/layouts/tt/__init__.py +++ b/core/src/trezor/ui/layouts/tt/__init__.py @@ -782,7 +782,7 @@ if not utils.BITCOIN_ONLY: ask_pagination=True, ) - def confirm_unknown_contract_warning() -> Awaitable[None]: + def confirm_ethereum_unknown_contract_warning() -> Awaitable[None]: return show_warning( "unknown_contract_warning", TR.ethereum__unknown_contract_address,