Encapsulate snap update permission operations in PermissionController
#871
Labels
PermissionController
Related to the PermissionController.
team-wallet-api-platform
team-wallet-framework
The
SnapController.updateSnap()
method performs some permission calculations that should occur in thePermissionController
. In particular, it compares the permissions of an existing snap with that of a new version, revokes ones that no longer exist, and grants ones that were added. It accomplishes this by callingPermissionController
actions. Ideally, these operations would be encapsulated within thePermissionController
, while the approval request is managed by theSnapController
.The text was updated successfully, but these errors were encountered: