Skip to content

Commit

Permalink
test(*): add missing networks property to MnemonicWallet and KmdWallet
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
drichar committed Dec 5, 2024
1 parent 0dace06 commit d1a9696
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/use-wallet/src/__tests__/wallets/kmd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ describe('KmdWallet', () => {
getAlgodClient: {} as any,
store,
subscribe: vi.fn(),
networks: DEFAULT_NETWORKS,
options: {
promptForPassword: () => Promise.resolve(customPassword)
}
Expand Down
3 changes: 2 additions & 1 deletion packages/use-wallet/src/__tests__/wallets/mnemonic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,8 @@ describe('MnemonicWallet', () => {
metadata: {},
getAlgodClient: {} as any,
store,
subscribe: vi.fn()
subscribe: vi.fn(),
networks: DEFAULT_NETWORKS
})
})

Expand Down

0 comments on commit d1a9696

Please sign in to comment.