diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00000.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00000.png deleted file mode 100644 index 8d84cc7..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00000.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00001.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00001.png deleted file mode 100644 index 9f26513..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00001.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00002.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00002.png deleted file mode 100644 index 701b26b..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00002.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00003.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00003.png deleted file mode 100644 index 32a2ee9..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00003.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00004.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00004.png deleted file mode 100644 index 1ed3d77..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00004.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00005.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00005.png deleted file mode 100644 index f19d91c..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00005.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00006.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00006.png deleted file mode 100644 index 1c9156c..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00006.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00007.png b/tests/ragger/snapshots/nanos/test_sign_eip_1559/00007.png deleted file mode 100644 index ce795f3..0000000 Binary files a/tests/ragger/snapshots/nanos/test_sign_eip_1559/00007.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanosp/test_sign_eip_1559 b/tests/ragger/snapshots/nanosp/test_sign_eip_1559 deleted file mode 120000 index bc60254..0000000 --- a/tests/ragger/snapshots/nanosp/test_sign_eip_1559 +++ /dev/null @@ -1 +0,0 @@ -../nanox/test_sign_eip_1559 \ No newline at end of file diff --git a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00000.png b/tests/ragger/snapshots/nanox/test_sign_eip_1559/00000.png deleted file mode 100644 index 487ea10..0000000 Binary files a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00000.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00001.png b/tests/ragger/snapshots/nanox/test_sign_eip_1559/00001.png deleted file mode 100644 index cdcc19d..0000000 Binary files a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00001.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00002.png b/tests/ragger/snapshots/nanox/test_sign_eip_1559/00002.png deleted file mode 100644 index 5b65b54..0000000 Binary files a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00002.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00003.png b/tests/ragger/snapshots/nanox/test_sign_eip_1559/00003.png deleted file mode 100644 index a1e3cc0..0000000 Binary files a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00003.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00004.png b/tests/ragger/snapshots/nanox/test_sign_eip_1559/00004.png deleted file mode 100644 index 570ce28..0000000 Binary files a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00004.png and /dev/null differ diff --git a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00005.png b/tests/ragger/snapshots/nanox/test_sign_eip_1559/00005.png deleted file mode 100644 index 6578872..0000000 Binary files a/tests/ragger/snapshots/nanox/test_sign_eip_1559/00005.png and /dev/null differ diff --git a/tests/ragger/snapshots/stax/test_sign_eip_1559/00000.png b/tests/ragger/snapshots/stax/test_sign_eip_1559/00000.png deleted file mode 100644 index f992e71..0000000 Binary files a/tests/ragger/snapshots/stax/test_sign_eip_1559/00000.png and /dev/null differ diff --git a/tests/ragger/snapshots/stax/test_sign_eip_1559/00001.png b/tests/ragger/snapshots/stax/test_sign_eip_1559/00001.png deleted file mode 100644 index 175a68f..0000000 Binary files a/tests/ragger/snapshots/stax/test_sign_eip_1559/00001.png and /dev/null differ diff --git a/tests/ragger/snapshots/stax/test_sign_eip_1559/00002.png b/tests/ragger/snapshots/stax/test_sign_eip_1559/00002.png deleted file mode 100644 index bc1ca93..0000000 Binary files a/tests/ragger/snapshots/stax/test_sign_eip_1559/00002.png and /dev/null differ diff --git a/tests/ragger/snapshots/stax/test_sign_eip_1559/00003.png b/tests/ragger/snapshots/stax/test_sign_eip_1559/00003.png deleted file mode 100644 index a21279c..0000000 Binary files a/tests/ragger/snapshots/stax/test_sign_eip_1559/00003.png and /dev/null differ diff --git a/tests/ragger/test_eip1559.py b/tests/ragger/test_eip1559.py deleted file mode 100644 index 14e81b7..0000000 --- a/tests/ragger/test_eip1559.py +++ /dev/null @@ -1,62 +0,0 @@ -from web3 import Web3 - -from client.client import EthAppClient -import client.response_parser as ResponseParser -from client.utils import recover_transaction - -from ragger.backend import BackendInterface -from ragger.firmware import Firmware -from ragger.navigator import Navigator, NavInsID - -from constants import ROOT_SNAPSHOT_PATH - - -BIP32_PATH = "m/44'/60'/0'/0/0" -NONCE = 1 -GAS_PRICE = 40000 -GAS_LIMIT = 10 -ADDR = bytes.fromhex("cccccccccccccccccccccccccccccccccccccccc") -AMOUNT = 0.01 -CHAIN_ID = 1 - - -def test_sign_eip_1559(firmware: Firmware, - backend: BackendInterface, - navigator: Navigator, - test_name: str): - - tx_params = { - "nonce": NONCE, - "gas": Web3.to_wei(GAS_PRICE, "gwei"), - "maxFeePerGas": Web3.to_wei(GAS_LIMIT, "gwei"), - "maxPriorityFeePerGas": Web3.to_wei(GAS_LIMIT, "gwei"), - "to": ADDR, - "chainId": CHAIN_ID, - } - - app_client = EthAppClient(backend) - - with app_client.get_public_addr(bip32_path=BIP32_PATH, display=False): - pass - _, DEVICE_ADDR, _ = ResponseParser.pk_addr(app_client.response().data) - - with app_client.sign(BIP32_PATH, tx_params): - if firmware.device.startswith("nano"): - next_action = NavInsID.RIGHT_CLICK - confirm_action = NavInsID.BOTH_CLICK - end_text = "Accept" - else: - next_action = NavInsID.USE_CASE_REVIEW_TAP - confirm_action = NavInsID.USE_CASE_REVIEW_CONFIRM - end_text = "Sign" - - navigator.navigate_until_text_and_compare(next_action, - [confirm_action], - end_text, - ROOT_SNAPSHOT_PATH, - test_name) - - # verify signature - vrs = ResponseParser.signature(app_client.response().data) - addr = recover_transaction(tx_params, vrs) - assert addr == DEVICE_ADDR