Add new test case for EIP712

This commit is contained in:
Alexandre Paillier
2023-07-05 17:08:20 +02:00
parent af8123ad45
commit 8541d69d33
2 changed files with 41 additions and 0 deletions

View File

@@ -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[][]" }
]
}
}

View File

@@ -0,0 +1,4 @@
[signature]
v = 1b
r = 5d0635a868602e29366da6328f8fadf2d6a9b4e69ee7a65928e85ca56fb1b515
s = 257364d6faaf5687edf90c3984f4240b0ce7b2dee55aa1f8f39c32d0d4d8c93d