Skip to content
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

Merged
merged 19 commits into from
May 29, 2024
Merged

Jon/network switching #32

merged 19 commits into from
May 29, 2024

Conversation

jonandgon
Copy link
Contributor

@jonandgon jonandgon commented Mar 26, 2024

Description

This PR adds support for (future) network switching.

This is a companion PR to https://github.com/puzzlehq/firenze/pull/396

Copy link
Contributor

@lukenewman lukenewman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

few cleanup comments

@@ -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';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

used?

Copy link
Contributor Author

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';
Copy link
Contributor

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?

Copy link
Contributor Author

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

@jonandgon jonandgon merged commit cd62000 into main May 29, 2024
@jonandgon jonandgon deleted the jon/network_switching branch May 29, 2024 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants