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

Added GrantPermissions action to PermissionsController #780

Merged
merged 2 commits into from
Apr 13, 2022

Conversation

ritave
Copy link
Member

@ritave ritave commented Apr 13, 2022

This is needed to allow a new UI page for Snaps. We want to ask the user for approval for an update, showing new permissions on the same page. This will be implemented as a new ApprovalController request in SnapController and then call to grantPermissions in PermissionController. Related PR: MetaMask/snaps#322

@ritave ritave requested a review from a team as a code owner April 13, 2022 12:17
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a test for this new action?

Also, context for what purpose this serves would be great. e.g. a link to an issue/PR this is in service of.

@ritave
Copy link
Member Author

ritave commented Apr 13, 2022

@Gudahtt Explained the context in the PR description. Added a test as well

Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ritave ritave merged commit e4d59b6 into main Apr 13, 2022
@ritave ritave deleted the ritave/grant-permissions branch April 13, 2022 13:58
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* Added GrantPermissions action to PermissionsController

* Added test for PermissionController:grantPermissions action
MajorLift pushed a commit that referenced this pull request Oct 11, 2023
* Added GrantPermissions action to PermissionsController

* Added test for PermissionController:grantPermissions action
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