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
Js sign typed data comparison testing #241
Js sign typed data comparison testing #241
Conversation
9494469
to
5130560
Compare
6f6f72f
to
07327a4
Compare
b8d4522
to
35fcebc
Compare
a3e331c
to
9021aa9
Compare
9021aa9
to
9de2aa3
Compare
dfeebec
to
33a1cbe
Compare
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.
Nit over the naming, but overall lgtm!
.circleci/config.yml
Outdated
- run: | ||
name: Build ethers-cli | ||
command: cd tests/integration/ethers-cli && sudo npm install && sudo npm install -g . && cd ../../../ | ||
name: Build js-integration-test-scripts |
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.
This name seems redundant since it is located in the integration directory. I don't have context about the ethers tests or what that name was about. Do the tests encompass tests for any js client? Would be curious if there is a name that aligns with what the tests do?
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.
Ethers is to JS as web3py is to python - https://github.com/ethers-io/ethers.js/tree/e454afb2fa3612c273a09b154c36b35fafab17b1
Prior to this PR, the integration tests there only used a specific set of functions from ethers, so the name was appropriate. Since I've added tests that use both ethers and a metamask library, I figured a more general name was in order.
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.
Agree on the redundancy - I'll clean that up.
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.
Okey, shortened to js-scripts
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.
First pass looks great to me 🔥
I had a question on one of the validations we do that matches ethers.js but not metamask. I'm going to run the tests now and make sure I understand how they are set up on the JS side as my JS is rusty 😅 ... but the rest looks good to me 👍🏼
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.
lgtm 👍🏼
cd1fef9
to
5f4c7be
Compare
What was wrong?
sign_typed_data
has been implemented with the intention of producing similar results as metamask and ethers-js, but the current test cases only compare with a static value (hash or sig)How was it fixed?
Todo:
Clean up commit history
Add or update documentation related to these changes
Add entry to the release notes
Cute Animal Picture