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

Đang mở
#17 4 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Speedable2 đang làm issue này rồi.

Từ ngày 21/11/2026.

  • #171 của @Speedable2 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Yormee-103/PayLoop

Tất cả issue của Yormee-103/PayLoop

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.