-
-
Notifications
You must be signed in to change notification settings - Fork 88
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
Changes in typed signature validation and normalization #318
Conversation
return address; | ||
function normalizeContractAddress(address: Hex): Hex { | ||
if (address.startsWith('0X')) { | ||
return `0x${address.slice(2)}`; | ||
} |
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.
Normilizing decimal and octal value is removed now, only normalization now is replacing 0X
prefix with 0x
.
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!
Oof, I see that CI is failing. This could be either a problem where the cache is not being properly restored, or the incorrect set of files is being saved in the cache. In other repos we've discussed replacing |
Saw this in other repos when rerunning previously passing jobs. Also specifically Node 22. Node.js 22.5.0 was just released so maybe something lurking here? Unless it's simply an intermittent infra issue at GH. |
@legobeat a fix for this has just been included in a new node patch |
I've fixed the Node issue here: #321 |
…to sign_validations
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 good!
@@ -32,7 +32,7 @@ jobs: | |||
with: | |||
node-version: ${{ matrix.node-version }} | |||
cache: 'yarn' | |||
- run: yarn --immutable --immutable-cache |
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 can maybe rollback this change ? It's not required for the ci if you update your branch the ci will work again
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.
👍 I updated the PR
f0536b1
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!
* origin/main: fix: change types signatures verifyingContract validation to allow 'cosmos' as address (#334) Update `main` with changes from v14.0.1 (#332) Request validation should not throw if verifyingContract is not defined in typed signature (#328) Add changelog entries for `#318` (#327) remove eth_sign (#320)
The PR addresses these 2 issues:
MetaMask/metamask-extension#25733
https://github.com/MetaMask/MetaMask-planning/issues/2810