From d1a96968f375620e7ad8a54e26fd111d91810832 Mon Sep 17 00:00:00 2001 From: Doug Richar Date: Thu, 5 Dec 2024 04:02:44 -0500 Subject: [PATCH] test(*): add missing networks property to MnemonicWallet and KmdWallet Two tests that were added upstream in PR #322 instantiate wallets without the `networks` property, introduced on the current `v4` branch. This change adds the `networks` property to `MnemonicWallet` and `KmdWallet`, ensuring proper initialization and tests passing. --- packages/use-wallet/src/__tests__/wallets/kmd.test.ts | 1 + packages/use-wallet/src/__tests__/wallets/mnemonic.test.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/use-wallet/src/__tests__/wallets/kmd.test.ts b/packages/use-wallet/src/__tests__/wallets/kmd.test.ts index 4ba36490..29620a2c 100644 --- a/packages/use-wallet/src/__tests__/wallets/kmd.test.ts +++ b/packages/use-wallet/src/__tests__/wallets/kmd.test.ts @@ -441,6 +441,7 @@ describe('KmdWallet', () => { getAlgodClient: {} as any, store, subscribe: vi.fn(), + networks: DEFAULT_NETWORKS, options: { promptForPassword: () => Promise.resolve(customPassword) } diff --git a/packages/use-wallet/src/__tests__/wallets/mnemonic.test.ts b/packages/use-wallet/src/__tests__/wallets/mnemonic.test.ts index 1a9f11ba..a4a01317 100644 --- a/packages/use-wallet/src/__tests__/wallets/mnemonic.test.ts +++ b/packages/use-wallet/src/__tests__/wallets/mnemonic.test.ts @@ -380,7 +380,8 @@ describe('MnemonicWallet', () => { metadata: {}, getAlgodClient: {} as any, store, - subscribe: vi.fn() + subscribe: vi.fn(), + networks: DEFAULT_NETWORKS }) })