Skip to content

Commit

Permalink
fix: fix tests (missing scopes)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccharly committed Dec 13, 2024
1 parent 42a56c4 commit ecb5bc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/hooks/accounts/useMultichainWalletSnapClient.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { renderHook } from '@testing-library/react-hooks';
import { HandlerType } from '@metamask/snaps-utils';
import { BtcAccountType, BtcMethod } from '@metamask/keyring-api';
import { BtcAccountType, BtcMethod, BtcScopes, SolScopes } from '@metamask/keyring-api';
import { MultichainNetworks } from '../../../shared/constants/multichain/networks';
import { BITCOIN_WALLET_SNAP_ID } from '../../../shared/lib/accounts/bitcoin-wallet-snap';
import { SOLANA_WALLET_SNAP_ID } from '../../../shared/lib/accounts/solana-wallet-snap';
Expand Down Expand Up @@ -36,6 +36,7 @@ describe('useMultichainWalletSnapClient', () => {
id: '11a33c6b-0d46-43f4-a401-01587d575fd0',
options: {},
methods: [BtcMethod.SendBitcoin],
scopes: [BtcScopes.Testnet],
type: BtcAccountType.P2wpkh,
},
},
Expand All @@ -48,6 +49,7 @@ describe('useMultichainWalletSnapClient', () => {
id: '22b44d7c-1e57-4b5b-8502-02698e686fd1',
options: {},
methods: ['someMethod'],
scopes: [SolScopes.Devnet],
// TODO: Update when keyring-api is published with Solana types
type: BtcAccountType.P2wpkh,
},
Expand Down

0 comments on commit ecb5bc1

Please sign in to comment.