Port 'contract_data_warning.test' from 'zemu' to 'ragger'
This commit is contained in:
BIN
tests/ragger/snapshots/nanos/test_legacy_contract/00000.png
Normal file
BIN
tests/ragger/snapshots/nanos/test_legacy_contract/00000.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 428 B |
BIN
tests/ragger/snapshots/nanos/test_legacy_contract/00001.png
Normal file
BIN
tests/ragger/snapshots/nanos/test_legacy_contract/00001.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 419 B |
BIN
tests/ragger/snapshots/nanos/test_legacy_contract/00002.png
Normal file
BIN
tests/ragger/snapshots/nanos/test_legacy_contract/00002.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 349 B |
1
tests/ragger/snapshots/nanosp/test_legacy_contract
Symbolic link
1
tests/ragger/snapshots/nanosp/test_legacy_contract
Symbolic link
@@ -0,0 +1 @@
|
||||
../nanox/test_legacy_contract
|
||||
BIN
tests/ragger/snapshots/nanox/test_legacy_contract/00000.png
Normal file
BIN
tests/ragger/snapshots/nanox/test_legacy_contract/00000.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 587 B |
BIN
tests/ragger/snapshots/nanox/test_legacy_contract/00001.png
Normal file
BIN
tests/ragger/snapshots/nanox/test_legacy_contract/00001.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 382 B |
@@ -201,6 +201,31 @@ def test_legacy_chainid2(firmware: Firmware,
|
||||
common(firmware, backend, navigator, tx_params, test_name, BIP32_PATH2)
|
||||
|
||||
|
||||
# Legacy Zemu contract data warning: Try to blind sign with setting disabled
|
||||
def test_legacy_contract(firmware: Firmware,
|
||||
backend: BackendInterface,
|
||||
navigator: Navigator,
|
||||
test_name: str):
|
||||
|
||||
buffer = bytes.fromhex("058000002c8000003c800000010000000000000000f849208506fc23ac008303dc3194f650c3d88d12db855b8bf7d11be6c55a4e07dcc980a4a1712d6800000000000000000000000000000000000000000000000000000000000acbc7018080")
|
||||
app_client = EthAppClient(backend)
|
||||
|
||||
try:
|
||||
with app_client.send_raw(0xe0, 0x04, 0x00, 0x00, buffer):
|
||||
if firmware.device.startswith("nano"):
|
||||
# No screens recorded on Stax
|
||||
moves = [
|
||||
NavInsID.RIGHT_CLICK,
|
||||
NavInsID.BOTH_CLICK
|
||||
]
|
||||
navigator.navigate_and_compare(ROOT_SNAPSHOT_PATH,
|
||||
test_name,
|
||||
moves)
|
||||
|
||||
except ExceptionRAPDU as e:
|
||||
assert e.status == StatusWord.INVALID_DATA
|
||||
|
||||
|
||||
def test_1559(firmware: Firmware, backend: BackendInterface, navigator: Navigator):
|
||||
tx_params: dict = {
|
||||
"nonce": NONCE,
|
||||
|
||||
Reference in New Issue
Block a user