Skip to content

Commit ecb5bc1

Browse files
committed
fix: fix tests (missing scopes)
1 parent 42a56c4 commit ecb5bc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/hooks/accounts/useMultichainWalletSnapClient.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { renderHook } from '@testing-library/react-hooks';
22
import { HandlerType } from '@metamask/snaps-utils';
3-
import { BtcAccountType, BtcMethod } from '@metamask/keyring-api';
3+
import { BtcAccountType, BtcMethod, BtcScopes, SolScopes } from '@metamask/keyring-api';
44
import { MultichainNetworks } from '../../../shared/constants/multichain/networks';
55
import { BITCOIN_WALLET_SNAP_ID } from '../../../shared/lib/accounts/bitcoin-wallet-snap';
66
import { SOLANA_WALLET_SNAP_ID } from '../../../shared/lib/accounts/solana-wallet-snap';
@@ -36,6 +36,7 @@ describe('useMultichainWalletSnapClient', () => {
3636
id: '11a33c6b-0d46-43f4-a401-01587d575fd0',
3737
options: {},
3838
methods: [BtcMethod.SendBitcoin],
39+
scopes: [BtcScopes.Testnet],
3940
type: BtcAccountType.P2wpkh,
4041
},
4142
},
@@ -48,6 +49,7 @@ describe('useMultichainWalletSnapClient', () => {
4849
id: '22b44d7c-1e57-4b5b-8502-02698e686fd1',
4950
options: {},
5051
methods: ['someMethod'],
52+
scopes: [SolScopes.Devnet],
5153
// TODO: Update when keyring-api is published with Solana types
5254
type: BtcAccountType.P2wpkh,
5355
},

0 commit comments

Comments
 (0)