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

Abierto
#17 4 comentarios 0 reacciones 1 asignado Ver en GitHub

Los mantenedores suelen responder en 1 día

@Speedable2 ya está trabajando en esto.

Desde el 21/11/2026.

  • #171 de @Speedable2 — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
0
Forks
4
Merge medio
54 min
PR fusionados (30 d)
6

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Yormee-103/PayLoop

Todos los issues de Yormee-103/PayLoop

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.