Skip to content

Listen to permissions changes and add/remove domains#3969

Merged
BelfordZ merged 7 commits intomainfrom
fix/permission-change-update-domains
Feb 27, 2024
Merged

Listen to permissions changes and add/remove domains#3969
BelfordZ merged 7 commits intomainfrom
fix/permission-change-update-domains

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
@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