Skip to content

Commit

Permalink
fix snapkeyring builder types
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Feb 13, 2025
1 parent f4f595f commit 6a60d7a
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions app/core/SnapKeyring/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ import type {
ShowSuccess,
StartFlow,
} from '@metamask/approval-controller';
import {
HandleSnapRequest as SnapControllerHandleRequestActionType,
GetSnap as SnapControllerGetSnapActionType,
} from '@metamask/snaps-controllers';

export type SnapKeyringBuilderAllowActions =
| StartFlow
Expand All @@ -31,10 +35,12 @@ export type SnapKeyringBuilderAllowActions =
| GetSubjectMetadata
| AccountsControllerSetSelectedAccountAction
| AccountsControllerGetAccountByAddressAction
| AccountsControllerSetAccountNameAction;
| AccountsControllerSetAccountNameAction
| SnapControllerHandleRequestActionType
| SnapControllerGetSnapActionType;

export type SnapKeyringBuilderMessenger = RestrictedMessenger<
'SnapKeyringBuilder',
'SnapKeyring',
SnapKeyringBuilderAllowActions,
never,
SnapKeyringBuilderAllowActions['type'],
Expand Down

0 comments on commit 6a60d7a

Please sign in to comment.