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

オープン
#17 コメント 4 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Speedable2 がすでに取り組んでいます。

2026年11月21日 から。

  • #171 @Speedable2 による — オープン

評価

この issue はまだ評価されていません。

説明

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.

主要言語
TypeScript
スター
0
フォーク
4
平均マージ
54分
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Yormee-103/PayLoop のほかの issue

Yormee-103/PayLoop の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。