Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aganglada committed Nov 27, 2024
1 parent b63c306 commit d9d8744
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions shared/constants/multichain/accounts.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { BtcAccountType, SolAccountType } from "@metamask/keyring-api";
import { BITCOIN_WALLET_SNAP_ID } from "../../lib/accounts/bitcoin-wallet-snap";
import { SOLANA_WALLET_SNAP_ID } from "../../lib/accounts/solana-wallet-snap";
import { BtcAccountType, SolAccountType } from '@metamask/keyring-api';
import { BITCOIN_WALLET_SNAP_ID } from '../../lib/accounts/bitcoin-wallet-snap';
import { SOLANA_WALLET_SNAP_ID } from '../../lib/accounts/solana-wallet-snap';

export const MULTICHAIN_ACCOUNT_TYPE_TO_SNAP_ID = {
///: BEGIN:ONLY_INCLUDE_IF(build-flask)
Expand All @@ -9,4 +9,4 @@ export const MULTICHAIN_ACCOUNT_TYPE_TO_SNAP_ID = {
///: BEGIN:ONLY_INCLUDE_IF(solana)
[SolAccountType.DataAccount]: SOLANA_WALLET_SNAP_ID,
///: END:ONLY_INCLUDE_IF
}
};
12 changes: 6 additions & 6 deletions shared/lib/accounts/snaps.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { SnapId } from "@metamask/snaps-sdk";
import { BITCOIN_WALLET_SNAP_ID } from "./bitcoin-wallet-snap";
import { SOLANA_WALLET_SNAP_ID } from "./solana-wallet-snap";
import { SnapId } from '@metamask/snaps-sdk';
import { BITCOIN_WALLET_SNAP_ID } from './bitcoin-wallet-snap';
import { SOLANA_WALLET_SNAP_ID } from './solana-wallet-snap';

/**
* A constant array that contains the IDs of whitelisted multichain
Expand All @@ -15,9 +15,9 @@ const WHITELISTED_SNAPS = [BITCOIN_WALLET_SNAP_ID, SOLANA_WALLET_SNAP_ID];
/**
* Checks if the given Snap ID corresponds to a multichain wallet Snap.
*
* @param {SnapId} id - The ID of the Snap to check.
* @returns {boolean} True if the Snap ID is in the whitelist, false otherwise.
* @param id - The ID of the Snap to check.
* @returns True if the Snap ID is in the whitelist, false otherwise.
*/
export function isMultichainWalletSnap(id: SnapId): boolean {
return WHITELISTED_SNAPS.includes(id);
}
}

0 comments on commit d9d8744

Please sign in to comment.