Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About issuerSig #129

Open
andy1994220 opened this issue Jun 1, 2021 · 0 comments
Open

About issuerSig #129

andy1994220 opened this issue Jun 1, 2021 · 0 comments
Labels

Comments

@andy1994220
Copy link

andy1994220 commented Jun 1, 2021

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

@bee-runner bee-runner bot added the issue label Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant