Improve EIP712 empty array test

This commit is contained in:
Alexandre Paillier
2024-03-22 17:35:57 +01:00
parent 3be9e1d197
commit 01f9db42b4

View File

@@ -6,19 +6,36 @@
"version": "1" "version": "1"
}, },
"message": { "message": {
"list1": [], "test1": [],
"list2": [], "test2": [
"list3": [
[ [
"1", "one",
"2" "two"
], ],
[], [],
[ [
"3", "three",
"4" "four"
] ]
] ],
"test3": [
{
"sub": [
{
"sub": [],
"value": 3
}
],
"value": 1
}
],
"test4": [
{
"sub": [],
"value": 2
}
],
"test5": []
}, },
"primaryType": "Struct", "primaryType": "Struct",
"types": { "types": {
@@ -29,9 +46,22 @@
{ "name": "verifyingContract", "type": "address" } { "name": "verifyingContract", "type": "address" }
], ],
"Struct": [ "Struct": [
{ "name": "list1", "type": "EIP712Domain[]" }, { "name": "test1", "type": "uint8[]" },
{ "name": "list2", "type": "uint8[]" }, { "name": "test2", "type": "string[][]" },
{ "name": "list3", "type": "string[][]" } { "name": "test3", "type": "Top[]" },
{ "name": "test4", "type": "Top[]" },
{ "name": "test5", "type": "Top[]" }
],
"Bottom": [
{ "name": "value", "type": "uint8" }
],
"Mid": [
{ "name": "sub", "type": "Bottom[]" },
{ "name": "value", "type": "uint8" }
],
"Top": [
{ "name": "sub", "type": "Mid[]" },
{ "name": "value", "type": "uint8" }
] ]
} }
} }