From 8541d69d339a06e2d4a4aa1ae02a29b781728abd Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Wed, 5 Jul 2023 17:08:20 +0200 Subject: [PATCH] Add new test case for EIP712 --- .../input_files/13-empty_arrays-data.json | 37 +++++++++++++++++++ .../eip712/input_files/13-empty_arrays.ini | 4 ++ 2 files changed, 41 insertions(+) create mode 100644 tests/ragger/eip712/input_files/13-empty_arrays-data.json create mode 100644 tests/ragger/eip712/input_files/13-empty_arrays.ini diff --git a/tests/ragger/eip712/input_files/13-empty_arrays-data.json b/tests/ragger/eip712/input_files/13-empty_arrays-data.json new file mode 100644 index 0000000..7a1f939 --- /dev/null +++ b/tests/ragger/eip712/input_files/13-empty_arrays-data.json @@ -0,0 +1,37 @@ +{ + "domain": { + "chainId": 5, + "name": "Empty Arrays", + "verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC", + "version": "1" + }, + "message": { + "list1": [], + "list2": [], + "list3": [ + [ + "1", + "2" + ], + [], + [ + "3", + "4" + ] + ] + }, + "primaryType": "Struct", + "types": { + "EIP712Domain": [ + { "name": "name", "type": "string" }, + { "name": "version", "type": "string" }, + { "name": "chainId", "type": "uint256" }, + { "name": "verifyingContract", "type": "address" } + ], + "Struct": [ + { "name": "list1", "type": "EIP712Domain[]" }, + { "name": "list2", "type": "uint8[]" }, + { "name": "list3", "type": "string[][]" } + ] + } +} diff --git a/tests/ragger/eip712/input_files/13-empty_arrays.ini b/tests/ragger/eip712/input_files/13-empty_arrays.ini new file mode 100644 index 0000000..4784a48 --- /dev/null +++ b/tests/ragger/eip712/input_files/13-empty_arrays.ini @@ -0,0 +1,4 @@ +[signature] +v = 1b +r = 5d0635a868602e29366da6328f8fadf2d6a9b4e69ee7a65928e85ca56fb1b515 +s = 257364d6faaf5687edf90c3984f4240b0ce7b2dee55aa1f8f39c32d0d4d8c93d