-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jon/network switching #32
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few cleanup comments
packages/react/src/store.ts
Outdated
@@ -1,7 +1,7 @@ | |||
import { create } from 'zustand'; | |||
import { queryClient } from './index.js'; | |||
import { persist } from 'zustand/middleware'; | |||
import { PuzzleAccount } from '@puzzlehq/sdk-core'; | |||
import { Network, PuzzleAccount } from '@puzzlehq/sdk-core'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
@@ -16,6 +16,5 @@ export * from './hooks/wc/useOnSessionExpire.js'; | |||
export * from './hooks/wc/useOnSessionUpdate.js'; | |||
export * from './hooks/wc/useSession.js'; | |||
export * from './provider/PuzzleWalletProvider.js'; | |||
export * from './store.js'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can remove the file too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, we need the wallet store, but we shouldn't export it from the index file. I don't want devs to directly access it
Description
This PR adds support for (future) network switching.
This is a companion PR to https://github.com/puzzlehq/firenze/pull/396