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

Add script for running + testing eth_signTypedData #7951

Merged
merged 3 commits into from
May 21, 2021

Conversation

eelanagaraj
Copy link
Contributor

Related to valora-inc/wallet#389 (helpful for testing)

// try {
// const testAddr = '0x12f0600c945826fe9be0ea08d7c6fd35df160749'
// console.log('sending typed data request')
// const signedData = await kit.signTypedData(testAddr, TYPED_DATA)
Copy link
Contributor

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

Copy link
Contributor Author

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!

Copy link
Contributor

@AlexBHarley AlexBHarley left a 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!

@eelanagaraj eelanagaraj added the automerge Have PR merge automatically when checks pass label May 21, 2021
@mergify mergify bot merged commit 2a04e35 into master May 21, 2021
@mergify mergify bot deleted the eelanagaraj/wc-eth_signTypedData branch May 21, 2021 13:40
mergify bot pushed a commit to valora-inc/wallet that referenced this pull request May 27, 2021
### 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!
medhakothari pushed a commit that referenced this pull request Jun 3, 2021
medhakothari pushed a commit that referenced this pull request Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Have PR merge automatically when checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants