Skip to content

Support switching between mainnet and testnet#122

Merged
dguenther merged 1 commit intomainfrom
network-switching
Feb 13, 2025
Merged

Support switching between mainnet and testnet#122
dguenther merged 1 commit intomainfrom
network-switching

Conversation

@dguenther
Copy link
Member

Adds support for switching between mainnet and testnet.

I currently have it re-import all accounts when switching between networks. I modified account import to do nothing if an account with the same public address exists in the database, but this does introduce some edge cases where someone imports the same account with a different name, or same account plus/minus the spend key. Nothing will happen now, where previously we'd throw an error.

@dguenther dguenther force-pushed the network-switching branch 2 times, most recently from 0089ebf to 3e4c53a Compare February 13, 2025 16:00
Copy link
Contributor

@cgjohn cgjohn left a comment

Choose a reason for hiding this comment

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

Looks good! We could try giving cursor an image of the design Skylar has for network switching which could remove the need for the modal currently popping up when clicking change network

@dguenther
Copy link
Member Author

Oh, he actually had that modal in an older prototype, but maybe he didn't bring it over. I'm down for any design tweaks regardless, I haven't actively styled this page yet!

@dguenther dguenther merged commit ef870a9 into main Feb 13, 2025
2 checks passed
@dguenther dguenther deleted the network-switching branch February 13, 2025 20:41
@cgjohn cgjohn restored the network-switching branch February 25, 2025 18: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