-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Dry address comparison #31750
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
base: main
Are you sure you want to change the base?
Dry address comparison #31750
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. |
✨ Files requiring CODEOWNER review ✨🖥️ @MetaMask/wallet-ux
|
1e81837
to
99d48d0
Compare
* Checks if an CAIP account ID is connected to any of the permitted accounts | ||
* based on scope matching | ||
* | ||
* @param accountId - The CAIP account ID to check against permitted accounts | ||
* @param permittedAccounts - Array of CAIP account IDs that are permitted | ||
* @returns True if the account is connected to any permitted account | ||
*/ | ||
export function isAccountIdInPermittedAccountIds( |
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 think the key thing to highlight about this function is that the "permittedAccounts" will contain 0 as references, which is why we can't just do a simple includes()
check?
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.
right
Description
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist