Skip to content

Commit 3f32d70

Browse files
committed
Remove unused actions
1 parent 27dda1a commit 3f32d70

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

packages/snaps-controllers/src/snaps/SnapController.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ import type {
117117
SemVerRange,
118118
CaipAssetType,
119119
JsonRpcRequest,
120-
Hex,
121120
SemVerVersion,
122121
CaipAssetTypeOrId,
123122
} from '@metamask/utils';
@@ -646,20 +645,6 @@ export type SnapControllerEvents =
646645
| SnapDisabled
647646
| SnapControllerStateChangeEvent;
648647

649-
type NetworkControllerGetNetworkClientById = {
650-
type: `NetworkController:getNetworkClientById`;
651-
handler: (customNetworkClientId: string) => {
652-
configuration: {
653-
chainId: Hex;
654-
};
655-
};
656-
};
657-
658-
type SelectedNetworkControllerGetNetworkClientIdForDomain = {
659-
type: `SelectedNetworkController:getNetworkClientIdForDomain`;
660-
handler: (domain: string) => string;
661-
};
662-
663648
export type AllowedActions =
664649
| GetEndowments
665650
| GetPermissions
@@ -683,9 +668,7 @@ export type AllowedActions =
683668
| Update
684669
| ResolveVersion
685670
| CreateInterface
686-
| GetInterface
687-
| NetworkControllerGetNetworkClientById
688-
| SelectedNetworkControllerGetNetworkClientIdForDomain;
671+
| GetInterface;
689672

690673
export type AllowedEvents =
691674
| ExecutionServiceEvents
@@ -952,7 +935,7 @@ export class SnapController extends BaseController<
952935
closeAllConnections,
953936
messenger,
954937
state,
955-
dynamicPermissions = ['eth_accounts'],
938+
dynamicPermissions = ['endowment:caip25'],
956939
environmentEndowmentPermissions = [],
957940
excludedPermissions = {},
958941
idleTimeCheckInterval = inMilliseconds(5, Duration.Second),

0 commit comments

Comments
 (0)