Skip to content

In the type attribute, when "type" comes before "name", the hash of the message cannot be calculated. #10

@wodingdong

Description

@wodingdong

when input json like this
{ "domain": { "verifyingContract": "0x911f21e0db7e30fda420c5347d0a851ab2e91528", "chainId": 1 }, "message": { "to": "0x28aa327687e68181ee250db5655f175f62078c18", "value": "0", "data": "0xa9059cbb000000000000000000000000228a966f89598cd66381ae3783ba4f70128037cc0000000000000000000000000000000000000000000000001d6fb24e8f876000", "operation": 0, "baseGas": "0", "gasPrice": "0", "gasToken": "0x0000000000000000000000000000000000000000", "refundReceiver": "0x0000000000000000000000000000000000000000", "nonce": 8, "safeTxGas": "0" }, "primaryType": "SafeTx", "types": { "EIP712Domain": [ { "name": "chainId", "type": "uint256" }, { "name": "verifyingContract", "type": "address" } ], "SafeTx": [ { "type": "address", "name": "to" }, { "type": "uint256", "name": "value" }, { "type": "bytes", "name": "data" }, { "type": "uint8", "name": "operation" }, { "type": "uint256", "name": "safeTxGas" }, { "type": "uint256", "name": "baseGas" }, { "type": "uint256", "name": "gasPrice" }, { "type": "address", "name": "gasToken" }, { "type": "address", "name": "refundReceiver" }, { "type": "uint256", "name": "nonce" } ] } }

ERROR is JSON_TYPE_S_ERR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions