Skip to content
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

Listen to permissions changes and add/remove domains #3969

Merged
merged 7 commits into from
Feb 27, 2024

Conversation

BelfordZ
Copy link
Contributor

@BelfordZ BelfordZ commented Feb 23, 2024

See here for more info: https://app.zenhub.com/workspaces/wallet-api-platform-63bee08a4e3b9d001108416e/issues/gh/metamask/metamask-planning/2142

Explanation

When there exists a permission for a domain, we will then start saving their network selection. We also retroactively add network selections for domains which already have permissions.

References

Changelog

@metamask/selected-network-controller

  • CHANGED: Domain selection is written/deleted when permissions are added/removed

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've highlighted breaking changes using the "BREAKING" category above as appropriate

@adonesky1
Copy link
Contributor

Looking good so far. Left some comments and lets get some tests for this new functionality 😄

@BelfordZ BelfordZ force-pushed the fix/permission-change-update-domains branch from ff52293 to 199bda7 Compare February 27, 2024 20:08
@BelfordZ BelfordZ changed the title SelectedNetworkController: Listen to permissions changes and add/remo… Listen to permissions changes and add/remove domains Feb 27, 2024
@BelfordZ BelfordZ marked this pull request as ready for review February 27, 2024 21:33
@BelfordZ BelfordZ requested a review from a team as a code owner February 27, 2024 21:33
adonesky1
adonesky1 previously approved these changes Feb 27, 2024
…ller.ts

Co-authored-by: Alex Donesky <adonesky@gmail.com>
@BelfordZ BelfordZ merged commit f7a0c13 into main Feb 27, 2024
138 checks passed
@BelfordZ BelfordZ deleted the fix/permission-change-update-domains branch February 27, 2024 21:40
@mcmire mcmire mentioned this pull request Feb 29, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants