BUG: Flaky Network Switching Validation

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

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

2026年11月15日 から。

  • #112 @Muneerali199 による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
javascript, react

調査の方向性

Start by reading TransactionReview.jsx, especially handleBuySc and its network switch flow. Reproduce the mismatch by switching MetaMask to a different network and submitting a transaction; trace how the provider chain ID and freshWalletClient.chain.id are checked. Done when a successful network switch lets the transaction proceed immediately without a false mismatch error.

索引モデルが issue の本文から書いたものです。

説明

[y] I have checked for duplicate issues

Description
In TransactionReview.jsx, the handleBuySc function performs a manual verification of the network after switching. It compares window.ethereum chain ID with the freshWalletClient.chain.id. This logic is brittle because freshWalletClient might maintain an old reference or the provider might not have emitted the event yet, leading to false positives for "Network mismatch" errors.

How to Reproduce

  1. Set MetaMask to a network different from the one selected in the widget.
  2. Click "Send Transaction".
  3. Approve the network switch in MetaMask.

Expected Behavior
The transaction proceeds immediately after the switch.

Actual Behavior
Occasionally, the code throws Wallet client chain mismatch, forcing the user to click the button again.

[y] I want to work on this issue

主要言語
JavaScript
スター
16
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

StabilityNexus/StablePay のほかの issue

StabilityNexus/StablePay の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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