swap-swear-and-swindle icon indicating copy to clipboard operation
swap-swear-and-swindle copied to clipboard

About issuerSig

Open andy1994220 opened this issue 3 years ago • 0 comments

I tried to sign the transaction by myself using the signCheque method in swutils.js, but there was a problem, can you answer me?

111

I modified the parameter type of signCheque

111

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' } }

andy1994220 avatar Jun 01 '21 08:06 andy1994220