diff --git a/tests/ragger/eip712/InputData.py b/tests/ragger/eip712/InputData.py index 6971293..7b66801 100644 --- a/tests/ragger/eip712/InputData.py +++ b/tests/ragger/eip712/InputData.py @@ -383,5 +383,5 @@ def process_file(aclient: EthereumClient, input_file_path: str, filtering = Fals return False # sign - send_sign() + #send_sign() return True diff --git a/tests/ragger/ethereum_client.py b/tests/ragger/ethereum_client.py index db0710b..a69f323 100644 --- a/tests/ragger/ethereum_client.py +++ b/tests/ragger/ethereum_client.py @@ -113,8 +113,9 @@ class EthereumClientCmdBuilder: data_w_length.append(len(data) & 0x00ff) data_w_length += data while len(data_w_length) > 0: + p1 = P1Type.PARTIAL_SEND if len(data_w_length) > 0xff else P1Type.COMPLETE_SEND yield self._serialize(InsType.EIP712_SEND_STRUCT_IMPL, - P1Type.COMPLETE_SEND, + p1, P2Type.STRUCT_FIELD, data_w_length[:0xff]) data_w_length = data_w_length[0xff:] diff --git a/tests/ragger/test_eip712.py b/tests/ragger/test_eip712.py index 0b06f55..9367dea 100644 --- a/tests/ragger/test_eip712.py +++ b/tests/ragger/test_eip712.py @@ -3,15 +3,16 @@ import fnmatch from ethereum_client import EthereumClient from eip712 import InputData -def test_eip712_legacy(app_client: EthereumClient): - bip32 = [ - 0x8000002c, - 0x8000003c, - 0x80000000, - 0, - 0 - ] +bip32 = [ + 0x8000002c, + 0x8000003c, + 0x80000000, + 0, + 0 +] + +def test_eip712_legacy(app_client: EthereumClient): v, r, s = app_client.eip712_sign_legacy( bip32, bytes.fromhex('6137beb405d9ff777172aa879e33edb34a1460e701802746c5ef96e741710e59'), @@ -32,4 +33,5 @@ def test_eip712_new(app_client: EthereumClient): if fnmatch.fnmatch(file, "*-test.json"): print(file.path) InputData.process_file(app_client, file.path, False) + app_client.eip712_sign_new(bip32) assert 1 == 1