Skip to content

Commit

Permalink
keyring-snaps code fence
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Aug 28, 2024
1 parent 3d1ff96 commit 3072451
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
21 changes: 11 additions & 10 deletions app/core/Engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -741,20 +741,21 @@ class Engine {
const snapKeyringBuildMessenger = this.controllerMessenger.getRestricted({
name: 'SnapKeyringBuilder',
allowedActions: [
'ApprovalController:addRequest',
'ApprovalController:acceptRequest',
'ApprovalController:rejectRequest',
'ApprovalController:startFlow',
'ApprovalController:endFlow',
'ApprovalController:showSuccess',
'ApprovalController:showError',
'PhishingController:test',
'PhishingController:maybeUpdateState',
'KeyringController:getAccounts',
`${approvalController.name}:addRequest`,
`${approvalController.name}:acceptRequest`,
`${approvalController.name}:rejectRequest`,
`${approvalController.name}:startFlow`,
`${approvalController.name}:endFlow`,
`${approvalController.name}:showSuccess`,
`${approvalController.name}:showError`,
`${phishingController.name}:testOrigin`,
`${phishingController.name}:maybeUpdateState`,
`KeyringController:getAccounts`,
'AccountsController:setSelectedAccount',
'AccountsController:getAccountByAddress',
'AccountsController:setAccountName',
],
allowedEvents: [],
});

const getSnapController = () => this.snapController;
Expand Down
2 changes: 2 additions & 0 deletions metro.transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ const availableFeatures = new Set([
'preinstalled-snaps',
'external-snaps',
'beta',
'keyring-snaps',
]);

const mainFeatureSet = new Set(['preinstalled-snaps']);
const flaskFeatureSet = new Set([
'flask',
'preinstalled-snaps',
'external-snaps',
'keyring-snaps',
]);

/**
Expand Down

0 comments on commit 3072451

Please sign in to comment.