Skip to content

Commit

Permalink
migrate to snapId
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Dec 18, 2023
1 parent 2deeb93 commit c759b57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/scripts/lib/snap-keyring/snap-keyring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import type { KeyringControllerGetAccountsAction } from '@metamask/keyring-contr
import browser from 'webextension-polyfill';
import { RestrictedControllerMessenger } from '@metamask/base-controller';
import { MaybeUpdateState, TestOrigin } from '@metamask/phishing-controller';
import { SnapId } from '@metamask/snaps-sdk';
import { SNAP_MANAGE_ACCOUNTS_CONFIRMATION_TYPES } from '../../../../shared/constants/app';
import { t } from '../../translate';
import MetamaskController from '../../metamask-controller';
Expand All @@ -28,7 +29,7 @@ import { isBlockedUrl } from './utils/isBlockedUrl';
*/
export const getAccountsBySnapId = async (
controller: MetamaskController,
snapId: string,
snapId: SnapId,
) => {
const snapKeyring: SnapKeyring = await controller.getSnapKeyring();
return await snapKeyring.getAccountsBySnapId(snapId);
Expand Down

0 comments on commit c759b57

Please sign in to comment.