-
Notifications
You must be signed in to change notification settings - Fork 375
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
Add script for running + testing eth_signTypedData #7951
Conversation
// try { | ||
// const testAddr = '0x12f0600c945826fe9be0ea08d7c6fd35df160749' | ||
// console.log('sending typed data request') | ||
// const signedData = await kit.signTypedData(testAddr, TYPED_DATA) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use the from
variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oop yes good catch 😂 thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than one note re. the from address, looks good!
### Description - implements `eth_signTypedData` ### Other changes - adds minimal additional error handling which should now be propagated as a response ### Tested - Manually via `use-contractkit` and by extending the `run-in-memory-client.ts` script in the `celo-monorepo` (in [this small PR](celo-org/celo-monorepo#7951)) ### Related issues - Fixes celo-org/celo-monorepo#7514 ### Backwards compatibility cc @medhak1 as this changes some of the structure in the `acceptRequest` function in `../saga.ts`, assuming that will be relevant for `personal_decrypt` or the other json RPC methods you're implementing!
Related to valora-inc/wallet#389 (helpful for testing)
Related to valora-inc/wallet#389 (helpful for testing)
Related to valora-inc/wallet#389 (helpful for testing)