BUG: Flaky Network Switching Validation
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 48/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react
- Área
- blockchain, payments
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
[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
- Set MetaMask to a network different from the one selected in the widget.
- Click "Send Transaction".
- 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
- Lenguaje dominante
- JavaScript
- Estrellas
- 16
- Forks
- 29
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de StabilityNexus/StablePay
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
StabilityNexus/StablePay#64 · 1 comentario ·
-
[BUG]: Missing SDK API documentation and incomplete developer-facing usage guide in StablePay READMEAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
StabilityNexus/StablePay#104 · 1 comentario ·
-
[BUG]: `stablepay-sdk` README documents an unrelated thirdweb app instead of the actual SDK APIAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 55/100
StabilityNexus/StablePay#102 ·
-
[FEATURE]: Centralize transaction initialization and quote fetching to avoid duplicate RPC calls in the widgetQuizá libre de nuevo @CaptainLevi2k04 la tomó hace 81 días y no hay ningún pull request abierto. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
StabilityNexus/StablePay#101 · 1 comentario ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 48/100
StabilityNexus/StablePay#96 · 1 comentario ·
Todos los issues de StabilityNexus/StablePay
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 Menos de una hora Aptitud para principiantes 82/100
Leonxlnx/taste-skill#216 ·
Los mantenedores suelen responder en 1 día
-
Docs: 11 broken linksAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
all-contributors/cli#690 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día