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
patch breaking change in signTypeData param validation #11309
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
@@ -177,7 +177,7 @@ export default class TypedMessageManager extends EventEmitter { | |||
break; | |||
case 'V3': | |||
case 'V4': { | |||
assert.equal( | |||
assert.strictEqual( |
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.
preserving strict equality check where there is no reported issue.
Builds ready [9627cf9]
Page Load Metrics (517 ± 56 ms)
|
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, but I do think going back to legacy assertion is a regression in itself ... We will need to return to this after the patch to figure out how to handle this long term. This is already discussed in internal (slack) communication but wanted to raise it here as well.
agreed. In this particular instance could just involve parsing all possible matching chainIds (string, hex, bigNumber) and making sure that the active is in that set? otherwise @ryanml do we feel good about merging and cutting a patch? |
@adonesky1 - no objections from me, but we should file an issue for followup reasonably soon per @brad-decker |
Just wrote one up: #11310 |
(Hot) Fixes: #11308 & #11296
Explanation: In 9.6 we added a strictEqual check when validating the specified chainId against the current chainId for
signTypedData
calls, this runs afoul of how the domain data is often formatted (as a string or hex string), causing issues for some developers.