forked from cerc-io/plugeth
core/signer, clef: improve ui-test flow, fix errors in uint handling (#19584)
* core/signer, clef: improve ui-test flow, fix errors in uint handling for eip-712 * core/signer: add fuzzer testcases + crashfixes * signer: address review concerns, check sign in integer parsing
This commit is contained in:
committed by
Guillaume Ballet
parent
7a22da98b9
commit
17381ecc66
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name": "test",
|
||||
"type": "uint8"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"domain": {
|
||||
"name": "Ether Mail",
|
||||
"version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"test":"255.3"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Foo": [
|
||||
{
|
||||
"name": "addys",
|
||||
"type": "address[]"
|
||||
},
|
||||
{
|
||||
"name": "stringies",
|
||||
"type": "string[]"
|
||||
},
|
||||
{
|
||||
"name": "inties",
|
||||
"type": "uint[]"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Foo",
|
||||
"domain": {
|
||||
"name": "Lorem",
|
||||
"version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"addys": [
|
||||
"0x0000000000000000000000000000000000000001",
|
||||
"0x0000000000000000000000000000000000000002",
|
||||
"0x0000000000000000000000000000000000000003"
|
||||
],
|
||||
"stringies": [
|
||||
"lorem",
|
||||
"ipsum",
|
||||
"dolores"
|
||||
],
|
||||
"inties": [
|
||||
"0x0000000000000000000000000000000000000001",
|
||||
"3",
|
||||
4.0
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "uint256"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name": "test",
|
||||
"type": "uint8"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"domain": {
|
||||
"name": "Ether Mail",
|
||||
"version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingContract": "0xCCCcccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"test":257
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"domain":{"version":"0","chainId":""}}
|
||||
@@ -0,0 +1,54 @@
|
||||
{ "types": { "":[ {
|
||||
"name": "name",
|
||||
"type":"string" },
|
||||
{
|
||||
"name":"version",
|
||||
"type": "string" }, {
|
||||
"name": "chaiI",
|
||||
"type":"uint256 . ad nowretig omeedifere" }, {
|
||||
"ae": "eifinC",
|
||||
"ty":"dess"
|
||||
}
|
||||
],
|
||||
"Person":[
|
||||
{
|
||||
"name":"name",
|
||||
"type": "string"
|
||||
}, {
|
||||
"name":"tes", "type":"it8"
|
||||
},
|
||||
{ "name":"t", "tye":"uit8"
|
||||
},
|
||||
{
|
||||
"a":"ale",
|
||||
"type": "ress"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name":"from", "type":"Person" },
|
||||
{
|
||||
"name": "to", "type": "Person"
|
||||
},
|
||||
{
|
||||
"name": "contents",
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
}, "primaryType": "Mail",
|
||||
"domain": {
|
||||
"name":"theMail", "version": "1",
|
||||
"chainId": "1",
|
||||
"verifyingntract": "0xCcccCCCcCCCCCCCcCCcCCCcCcccccC"
|
||||
},
|
||||
"message": { "from": {
|
||||
"name": "Cow",
|
||||
"test": "3",
|
||||
"est2":5.0,
|
||||
"llt": "0xcD2a3938E13D947E0bE734DfDD86" }, "to": { "name": "Bob",
|
||||
"ts":"",
|
||||
"tet2": 5,
|
||||
"allet": "0bBBBBbbBBbbbbBbbBbbbbBBBbB"
|
||||
},
|
||||
"contents": "Hello, Bob!" }
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
"types": {
|
||||
"EIP712Domain": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "version",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "chainId",
|
||||
"type": "int"
|
||||
},
|
||||
{
|
||||
"name": "verifyingContract",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Person": [
|
||||
{
|
||||
"name": "name",
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"name": "wallet",
|
||||
"type": "address"
|
||||
}
|
||||
],
|
||||
"Mail": [
|
||||
{
|
||||
"name": "from",
|
||||
"type": "Person"
|
||||
},
|
||||
{
|
||||
"name": "to",
|
||||
"type": "Mail"
|
||||
},
|
||||
{
|
||||
"name": "s",
|
||||
"type": "Person"
|
||||
}
|
||||
]
|
||||
},
|
||||
"primaryType": "Mail",
|
||||
"domain": {
|
||||
"name": "l",
|
||||
"version": "1",
|
||||
"chainId": "",
|
||||
"verifyingContract": "0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC"
|
||||
},
|
||||
"message": {
|
||||
"from": {
|
||||
"name": "",
|
||||
"wallet": "0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826"
|
||||
},
|
||||
"to": {
|
||||
"name": "",
|
||||
"wallet": "0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB"
|
||||
},
|
||||
"": ""
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"types":{"0":[{}]}}
|
||||
Reference in New Issue
Block a user