Skip to content

Commit 570f39a

Browse files
committed
Correct import path in WalletConnect and update mock atom in tests
1 parent aac3b60 commit 570f39a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/typink/src/providers/__tests__/WalletSetupProvider.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ vi.mock('jotai', () => ({
1717
useAtomValue: (atom: any) => mockUseAtomValue(atom),
1818
useSetAtom: (atom: any) => mockUseSetAtom(atom),
1919
createStore: vi.fn(() => ({})),
20+
atom: (initialValue: any) => initialValue,
2021
Provider: ({ children }: any) => children,
2122
}));
2223

packages/typink/src/wallets/WalletConnect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { NetworkInfo } from '../types.js';
1414
import type { WalletConnectModal } from '@walletconnect/modal';
1515
import { assert, DedotError, HexString } from 'dedot/utils';
16-
import { genesisHashToCaipId, convertNetworkInfoToCaipId } from 'src/utils/chains.js';
16+
import { genesisHashToCaipId, convertNetworkInfoToCaipId } from '../utils/chains.js';
1717
import { polkadot } from '../networks/index.js';
1818

1919
export interface WalletConnectOptions extends WalletOptions {

0 commit comments

Comments
 (0)