swap-swear-and-swindle
swap-swear-and-swindle copied to clipboard
About issuerSig
I tried to sign the transaction by myself using the signCheque method in swutils.js, but there was a problem, can you answer me?
I modified the parameter type of signCheque
The json is: {"jsonrpc":"2.0","method":"eth_signTypedData_v4","params":["0x584d01560a3a673bxxxxxxxxxxxxxxxx",{"types":{"EIP712Domain":[{"name":"name","type":"string"},{"name":"version","type":"string"},{"name":"chainId","type":"uint256"}],"Cheque":[{"name":"chequebook","type":"address"},{"name":"beneficiary","type":"address"},{"name":"cumulativePayout","type":"uint256"}]},"domain":{"name":"Chequebook","version":"1.0","chainId":31337},"primaryType":"Cheque","message":{"chequebook":"0x9d42c330ec118f963xxxxxxxxxxxxxxxx","beneficiary":"0x9dCeF356167Cc4fdC0dxxxxxxxxxxxxxxxx","cumulativePayout":9000000000000}}]}
And the return is: { jsonrpc: '2.0', error: { code: -32600, message: 'invalid json request' } }