Skip to content

Commit

Permalink
TEMPORARY remove nano_screen navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
cedelavergne-ledger committed Feb 21, 2025
1 parent 76a92df commit 075b79c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/ragger/test_eip712.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,14 @@ def eip712_new_common(firmware: Firmware,
# need to skip the message hash
if not verbose and filters is None:
moves += [NavInsID.RIGHT_CLICK] * 2
if "nano_screens" in json_data:
key = f"{verbose}{filters is not None}"
if isinstance(json_data["nano_screens"], dict) and key in json_data["nano_screens"]:
moves += [NavInsID.RIGHT_CLICK] * json_data["nano_screens"][key]
elif isinstance(json_data["nano_screens"], int):
moves += [NavInsID.RIGHT_CLICK] * json_data["nano_screens"]
else:
raise ValueError("Invalid nano_screens value")
# if "nano_screens" in json_data:
# key = f"{verbose}{filters is not None}"
# if isinstance(json_data["nano_screens"], dict) and key in json_data["nano_screens"]:
# moves += [NavInsID.RIGHT_CLICK] * json_data["nano_screens"][key]
# elif isinstance(json_data["nano_screens"], int):
# moves += [NavInsID.RIGHT_CLICK] * json_data["nano_screens"]
# else:
# raise ValueError("Invalid nano_screens value")
moves += [NavInsID.BOTH_CLICK]
else:
if not skip_flow:
Expand Down

0 comments on commit 075b79c

Please sign in to comment.