Skip to content

# feat(frontend): warn on Freighter network mismatch - #720

Open
Eldren-cmd wants to merge 2 commits into
anumukul:mainfrom
Eldren-cmd:fix-freighter-network-mismatch
Open

# feat(frontend): warn on Freighter network mismatch#720
Eldren-cmd wants to merge 2 commits into
anumukul:mainfrom
Eldren-cmd:fix-freighter-network-mismatch

Conversation

@Eldren-cmd

Copy link
Copy Markdown

Closes #661

Summary

  • Added Freighter wallet network detection and normalization for Testnet, Futurenet, and Mainnet.
  • Extended wallet context to track the connected wallet network and respond to Freighter account/network changes.
  • Added a persistent global warning banner when the wallet network does not match NEXT_PUBLIC_NETWORK.
  • Added a one-click action to switch the app network to match the connected Freighter network.
  • Added focused tests for Freighter network normalization and wallet context network state.

Testing

  • npx.cmd eslint app/layout.tsx components/WalletNetworkWarning.tsx lib/stellar.ts lib/wallet-context.tsx __tests__/wallet-context.test.tsx __tests__/freighter-network.test.ts
  • npx.cmd vitest run __tests__/freighter-network.test.ts __tests__/wallet-context.test.tsx

@Eldren-cmd

Copy link
Copy Markdown
Author

@anumukul here it is

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.

1 participant