React to Freighter account and network changes; warn on wrong network

Aperta
#17 4 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Speedable2 ci sta già lavorando.

Dal 21/11/2026.

  • #171 di @Speedable2 — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

difficulty: intermediate enhancement help wanted Stellar Wave ux web

Difficulty: Intermediate

Description

WalletProvider detects the wallet only on mount, and nothing in the UI reads the captured network. If a user switches Freighter to Mainnet or to a different account, the app keeps the old address, and signing then fails with a confusing error. The Help page already has a "wrong network" FAQ, which suggests this happens in practice.

Implementation suggestions

Re-run detectWallet() on window focus and on a light interval. Compare network against config.networkPassphrase and show a persistent banner ("Switch Freighter to Testnet") that blocks write buttons. Update the address when the account changes.

Acceptance criteria

  • Switching the account in Freighter updates the navbar address within a few seconds of refocusing.
  • A wrong network shows a banner and disables Create and Pay.
  • No behaviour change when everything matches.

Dependencies / related

Related to #34 (multi-wallet adapter); implement against the wallet interface so it carries over.

Lingua principale
TypeScript
Stelle
0
Fork
4
Merge medio
54m
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Yormee-103/PayLoop

Tutte le issue di Yormee-103/PayLoop

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.