Skip to content

Commit

Permalink
fixup! fixup! feat(core): show ETH account info on model T
Browse files Browse the repository at this point in the history
  • Loading branch information
ibz committed Feb 11, 2025
1 parent 08b812e commit 9fc4846
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/device_tests/ethereum/test_signtx.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import pytest

from trezorlib import ethereum, exceptions, messages
from trezorlib import ethereum, exceptions, messages, models
from trezorlib.debuglink import TrezorClientDebugLink as Client
from trezorlib.debuglink import message_filters
from trezorlib.exceptions import TrezorFailure
Expand Down Expand Up @@ -220,10 +220,15 @@ 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),
messages.ButtonRequest(code=messages.ButtonRequestType.Other),
(is_t1, messages.ButtonRequest(code=messages.ButtonRequestType.SignTx)),
(
not is_t1,
messages.ButtonRequest(code=messages.ButtonRequestType.Other),
),
messages.ButtonRequest(code=messages.ButtonRequestType.SignTx),
message_filters.EthereumTxRequest(
data_length=1_024,
Expand Down

0 comments on commit 9fc4846

Please sign in to comment.