-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Bump eth-sig-util to 2.3.0 #6896
Conversation
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.
On #6661, @danfinlay mentioned having to update the keyrings to use the new version of eth-sig-util
as well. That hasn't been done yet - they're still on 1.x.
This change seems fine either way - we were already using 2.x. I'm wondering what the consequences of our dependencies using the older eth-sig-util
might be though - whether any expectations about these signatures bleed across package boundaries. 🤔
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.
The reason this was listed as a breaking semver change (eth-sig-util@>=2.x.x
is because the signTypedData method was assigned a new name. We should make sure we are pointing to the correct method in this PR:
https://github.com/MetaMask/eth-sig-util/pull/20/files
Looks like Mark already raised my concern, feel free to dismiss my review, I just mean that we should make sure it still works the same, like on the signature test site: |
Updated to bump I believe this change now accomplishes what we need—I don't think the other instances of the module are important in this context.
By module:
That's a valid concern and something we should audit. I imagine we can/will run into issues with the version mix we have (e.g. if
The extension was already on 2.x so it shouldn't need undergo any changes for us to bump the direct dependency. Looking at the API for the That said, I did test this with the signature site and it looks good to me. Maybe @tmashuang can also give it his seal of approval? I've add @brunobar79 to the reviewers here as well for good measure. |
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.
Sounds reasonable 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.
Looks like @whymarrh did the due diligence, thanks!
Closes #6661, refs MetaMask/eth-sig-util#51