diff --git a/packages/accounts-controller/src/AccountsController.test.ts b/packages/accounts-controller/src/AccountsController.test.ts index 06e17660f4b..d2ccc1ef62f 100644 --- a/packages/accounts-controller/src/AccountsController.test.ts +++ b/packages/accounts-controller/src/AccountsController.test.ts @@ -194,12 +194,6 @@ function buildAccountsControllerMessenger(messenger = buildMessenger()) { 'KeyringController:getAccounts', 'KeyringController:getKeyringForAccount', 'KeyringController:getKeyringsByType', - 'AccountsController:listAccounts', - 'AccountsController:setAccountName', - 'AccountsController:setSelectedAccount', - 'AccountsController:updateAccounts', - 'AccountsController:getSelectedAccount', - 'AccountsController:getAccountByAddress', ], }); } diff --git a/packages/gas-fee-controller/src/GasFeeController.test.ts b/packages/gas-fee-controller/src/GasFeeController.test.ts index 6cd2b3433ad..e2f34c6d272 100644 --- a/packages/gas-fee-controller/src/GasFeeController.test.ts +++ b/packages/gas-fee-controller/src/GasFeeController.test.ts @@ -71,15 +71,8 @@ const setupNetworkController = async ({ }) => { const restrictedMessenger = unrestrictedMessenger.getRestricted({ name: 'NetworkController', - allowedActions: [ - 'NetworkController:getState', - 'NetworkController:getNetworkClientById', - 'NetworkController:getEIP1559Compatibility', - ], - allowedEvents: [ - 'NetworkController:stateChange', - 'NetworkController:networkDidChange', - ], + allowedActions: [], + allowedEvents: [], }); const networkController = new NetworkController({ diff --git a/packages/keyring-controller/src/KeyringController.test.ts b/packages/keyring-controller/src/KeyringController.test.ts index 45b21ba19f7..827560b2e0d 100644 --- a/packages/keyring-controller/src/KeyringController.test.ts +++ b/packages/keyring-controller/src/KeyringController.test.ts @@ -2306,25 +2306,6 @@ function buildMessenger() { function buildKeyringControllerMessenger(messenger = buildMessenger()) { return messenger.getRestricted({ name: 'KeyringController', - allowedActions: [ - 'KeyringController:getState', - 'KeyringController:signMessage', - 'KeyringController:signPersonalMessage', - 'KeyringController:signTypedMessage', - 'KeyringController:decryptMessage', - 'KeyringController:getEncryptionPublicKey', - 'KeyringController:getKeyringsByType', - 'KeyringController:getKeyringForAccount', - 'KeyringController:getAccounts', - 'KeyringController:persistAllKeyrings', - ], - allowedEvents: [ - 'KeyringController:stateChange', - 'KeyringController:lock', - 'KeyringController:unlock', - 'KeyringController:accountRemoved', - 'KeyringController:qrKeyringStateChange', - ], }); } diff --git a/packages/network-controller/tests/NetworkController.test.ts b/packages/network-controller/tests/NetworkController.test.ts index 36f7567ec91..ef4c7f08f3e 100644 --- a/packages/network-controller/tests/NetworkController.test.ts +++ b/packages/network-controller/tests/NetworkController.test.ts @@ -7069,17 +7069,6 @@ function buildMessenger() { function buildNetworkControllerMessenger(messenger = buildMessenger()) { return messenger.getRestricted({ name: 'NetworkController', - allowedActions: [ - 'NetworkController:getProviderConfig', - 'NetworkController:getEthQuery', - ], - allowedEvents: [ - 'NetworkController:stateChange', - 'NetworkController:infuraIsBlocked', - 'NetworkController:infuraIsUnblocked', - 'NetworkController:networkDidChange', - 'NetworkController:networkWillChange', - ], }); } diff --git a/packages/permission-controller/src/SubjectMetadataController.test.ts b/packages/permission-controller/src/SubjectMetadataController.test.ts index de67b769dc6..c0793538d46 100644 --- a/packages/permission-controller/src/SubjectMetadataController.test.ts +++ b/packages/permission-controller/src/SubjectMetadataController.test.ts @@ -38,10 +38,7 @@ function getSubjectMetadataControllerMessenger() { SubjectMetadataControllerEvents['type'] >({ name: controllerName, - allowedActions: [ - 'PermissionController:hasPermissions', - 'SubjectMetadataController:getState', - ], + allowedActions: ['PermissionController:hasPermissions'], }) as SubjectMetadataControllerMessenger, hasPermissionsSpy, ] as const; diff --git a/packages/queued-request-controller/tests/utils.ts b/packages/queued-request-controller/tests/utils.ts index 37fb94939bd..fa75af8be76 100644 --- a/packages/queued-request-controller/tests/utils.ts +++ b/packages/queued-request-controller/tests/utils.ts @@ -4,10 +4,6 @@ import type { QueuedRequestControllerActions, QueuedRequestControllerEvents, } from '../src/QueuedRequestController'; -import { - QueuedRequestControllerActionTypes, - QueuedRequestControllerEventTypes, -} from '../src/QueuedRequestController'; /** * Build a controller messenger that includes all events used by the selected network @@ -32,7 +28,7 @@ export function buildQueuedRequestControllerMessenger( ) { return messenger.getRestricted({ name: 'QueuedRequestController', - allowedActions: [...Object.values(QueuedRequestControllerActionTypes)], - allowedEvents: [...Object.values(QueuedRequestControllerEventTypes)], + allowedActions: [], + allowedEvents: [], }); } diff --git a/packages/rate-limit-controller/src/RateLimitController.test.ts b/packages/rate-limit-controller/src/RateLimitController.test.ts index 58f1081a35c..9a41dea5755 100644 --- a/packages/rate-limit-controller/src/RateLimitController.test.ts +++ b/packages/rate-limit-controller/src/RateLimitController.test.ts @@ -51,7 +51,7 @@ function getRestrictedMessenger( never >({ name, - allowedActions: ['RateLimitController:call'], + allowedActions: [], }) as RateLimitMessenger; } diff --git a/packages/selected-network-controller/tests/utils.ts b/packages/selected-network-controller/tests/utils.ts index 043c407bb56..6837fb3981c 100644 --- a/packages/selected-network-controller/tests/utils.ts +++ b/packages/selected-network-controller/tests/utils.ts @@ -5,7 +5,6 @@ import type { SelectedNetworkControllerAction, SelectedNetworkControllerEvent, } from '../src/SelectedNetworkController'; -import { SelectedNetworkControllerActionTypes } from '../src/SelectedNetworkController'; /** * Build a controller messenger that includes all events used by the selected network @@ -37,10 +36,7 @@ export function buildSelectedNetworkControllerMessenger( ); return messenger.getRestricted({ name: 'SelectedNetworkController', - allowedActions: [ - ...Object.values(SelectedNetworkControllerActionTypes), - 'NetworkController:getNetworkClientById', - ], + allowedActions: ['NetworkController:getNetworkClientById'], allowedEvents: ['NetworkController:stateChange'], }); }