1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-01 11:58:28 +00:00

fixup! fixup! refactor(core): use warning_hi_prio in ETH flow

This commit is contained in:
Ioan Bizău 2024-11-18 12:59:46 +01:00
parent 011b6db7c5
commit f4ea087ec0
4 changed files with 5 additions and 5 deletions

View File

@ -144,9 +144,9 @@ async def require_confirm_claim(
async def require_confirm_unknown_token(address_bytes: bytes) -> None: async def require_confirm_unknown_token(address_bytes: bytes) -> None:
from ubinascii import hexlify 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() contract_address_hex = "0x" + hexlify(address_bytes).decode()
await confirm_address( await confirm_address(

View File

@ -727,7 +727,7 @@ if not utils.BITCOIN_ONLY:
ask_pagination=True, ask_pagination=True,
) )
def confirm_unknown_contract_warning() -> Awaitable[None]: def confirm_ethereum_unknown_contract_warning() -> Awaitable[None]:
return raise_if_not_confirmed( return raise_if_not_confirmed(
trezorui2.flow_warning_hi_prio( trezorui2.flow_warning_hi_prio(
title=TR.words__warning, title=TR.words__warning,

View File

@ -818,7 +818,7 @@ if not utils.BITCOIN_ONLY:
ask_pagination=True, ask_pagination=True,
) )
def confirm_unknown_contract_warning() -> Awaitable[ui.UiResult]: def confirm_ethereum_unknown_contract_warning() -> Awaitable[ui.UiResult]:
return show_warning( return show_warning(
"unknown_contract_warning", "unknown_contract_warning",
TR.ethereum__unknown_contract_address, TR.ethereum__unknown_contract_address,

View File

@ -782,7 +782,7 @@ if not utils.BITCOIN_ONLY:
ask_pagination=True, ask_pagination=True,
) )
def confirm_unknown_contract_warning() -> Awaitable[None]: def confirm_ethereum_unknown_contract_warning() -> Awaitable[None]:
return show_warning( return show_warning(
"unknown_contract_warning", "unknown_contract_warning",
TR.ethereum__unknown_contract_address, TR.ethereum__unknown_contract_address,