mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-03-18 17:16:06 +00:00
fix(core): fix br_code inconsistency in sign-tx
[no changelog]
This commit is contained in:
parent
c8210056da
commit
b8e2709ca8
@ -864,9 +864,7 @@ if not utils.BITCOIN_ONLY:
|
||||
)
|
||||
|
||||
while True:
|
||||
await with_info(
|
||||
address_layout, account_info_layout, br_name, ButtonRequestType.Other
|
||||
)
|
||||
await with_info(address_layout, account_info_layout, br_name, br_code)
|
||||
|
||||
try:
|
||||
await with_info(total_layout, fee_info_layout, br_name, br_code)
|
||||
|
@ -982,6 +982,7 @@ if not utils.BITCOIN_ONLY:
|
||||
title,
|
||||
recipient or TR.ethereum__new_contract,
|
||||
verb=TR.buttons__continue,
|
||||
br_code=br_code,
|
||||
chunkify=(chunkify if recipient else False),
|
||||
)
|
||||
|
||||
|
@ -778,7 +778,7 @@ if not utils.BITCOIN_ONLY:
|
||||
account_path=account_path,
|
||||
address=None,
|
||||
address_title=None,
|
||||
br_code=ButtonRequestType.Other,
|
||||
br_code=ButtonRequestType.SignTx,
|
||||
br_name="confirm_output",
|
||||
summary_items=(
|
||||
(TR.words__amount, total_amount),
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
import pytest
|
||||
|
||||
from trezorlib import ethereum, exceptions, messages, models
|
||||
from trezorlib import ethereum, exceptions, messages
|
||||
from trezorlib.debuglink import TrezorClientDebugLink as Client
|
||||
from trezorlib.debuglink import message_filters
|
||||
from trezorlib.exceptions import TrezorFailure
|
||||
@ -220,15 +220,10 @@ def test_data_streaming(client: Client):
|
||||
checked in vectorized function above.
|
||||
"""
|
||||
with client:
|
||||
is_t1 = client.model is models.T1B1
|
||||
client.set_expected_responses(
|
||||
[
|
||||
messages.ButtonRequest(code=messages.ButtonRequestType.SignTx),
|
||||
(is_t1, messages.ButtonRequest(code=messages.ButtonRequestType.SignTx)),
|
||||
(
|
||||
not is_t1,
|
||||
messages.ButtonRequest(code=messages.ButtonRequestType.Other),
|
||||
),
|
||||
messages.ButtonRequest(code=messages.ButtonRequestType.SignTx),
|
||||
messages.ButtonRequest(code=messages.ButtonRequestType.SignTx),
|
||||
message_filters.EthereumTxRequest(
|
||||
data_length=1_024,
|
||||
|
Loading…
Reference in New Issue
Block a user