-
-
Notifications
You must be signed in to change notification settings - Fork 295
refactor: Use permission decoders from @metamask/7715-permission-types
#9164
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?
Changes from all commits
bb882e4
164df42
aa79559
6fc2c63
9e4f620
7055b57
63657c3
7cbbc65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,7 +26,6 @@ const gatorPermissionsController = new GatorPermissionsController({ | |
| 'native-token-periodic', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor doc nit — the example
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think this example needs to include all implemented permission types - this is showing how the controller may be instantiated with a list of permission types that should be supported. This list can be incomplete - it's actually highlighting the capability to restrict supported permissions, but also we probably don't want to update this every time we add permission types to the dependency. |
||
| 'erc20-token-stream', | ||
| 'erc20-token-periodic', | ||
| 'erc20-token-revocation', | ||
| ], | ||
| // Optional: override the default gator permissions provider Snap id | ||
| // gatorPermissionsProviderSnapId: 'npm:@metamask/gator-permissions-snap', | ||
|
|
||
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.
Small suggestion — the Unreleased entries currently just say "Changed" for switching to package decoders / bumping the dependency, but don't mention that
erc20-token-revocationsupport seems to have been dropped along the way (see the comment on types.ts). If that drop is intentional, might be worth calling it out explicitly (possibly with a BREAKING: prefix per our changelog convention), so consumers relying on that permission type aren't caught off guard after upgrading.