You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FixesMetaMask#3199
Implement the `snap_getPreferences` hook on mobile.
* **CronjobController.ts**
- Add import statement for `getPreferences` from `@metamask/snaps-sdk`
- Add `getPreferences` to the list of hooks in the `CronjobController` class
* **SnapInterfaceController.ts**
- Add import statement for `getPreferences` from `@metamask/snaps-sdk`
- Add `getPreferences` to the list of hooks in the `SnapInterfaceController` class
- Register action handler for `getPreferences`
- Implement `getPreferences` method
* **AbstractExecutionService.ts**
- Add import statement for `getPreferences` from `@metamask/snaps-sdk`
- Add `getPreferences` to the list of hooks in the `AbstractExecutionService` class
- Register action handler for `getPreferences`
- Implement `getPreferences` method
* **ExecutionService.ts**
- Add import statement for `getPreferences` from `@metamask/snaps-sdk`
- Add `getPreferences` to the list of hooks in the `ExecutionService` class
- Register action handler for `getPreferences`
- Implement `getPreferences` method
* **constants.ts**
- Add `snap_getPreferences` to the `ALLOWED_PERMISSIONS` array
---
For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MetaMask/snaps/issues/3199?shareId=XXXX-XXXX-XXXX-XXXX).
We need to add the
getPreferences
hook on mobile to supportsnap_getPreferences
.The text was updated successfully, but these errors were encountered: