[BUG]: Cancel dialog stays open after a network switch and cancels the invoice with the same id on the new chain

Abierto
#367 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 2 días

@kansalakshat ya está trabajando en esto.

Desde el 15/11/2026.

  • #368 de @kansalakshat — abierto

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
64/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
javascript
Área
frontend

Línea de trabajo

The Sent Invoices page already clears its list on a network or account switch, so start by finding that handler and the component that owns its invoice list state; the "Confirm Invoice Cancellation" dialog evidently keeps its own copy of the invoice instead. Trace the click that calls cancelInvoice(id) and see which chain id it is bound to, then make the dialog close (or re-bind) when the switch is detected. Done means switching chains or accounts with the dialog open leaves it dismissed and no cancellation is sent to the new chain.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug
Bug Description

On Sent Invoices, the "Confirm Invoice Cancellation" dialog stays open when the wallet switches network or account. The page clears its list on the switch, but the dialog keeps the old invoice. Clicking "Yes, Cancel It" sends cancelInvoice(id) to the new chain's contract, so if you created an invoice with that id there, it gets cancelled instead.

Steps to Reproduce
  1. Have an unpaid sent invoice with the same id on two supported chains (e.g. Sepolia and Mordor).
  2. Open Sent Invoices on Sepolia and click Cancel on it.
  3. With the dialog open, switch the wallet to Mordor.
  4. The dialog is still there; click "Yes, Cancel It". The Mordor invoice is cancelled and the Sepolia one isn't.
Logs and Screenshots

Screenshot to follow.

before-2-after-switch after-2-after-switch
Environment Details
  • OS: Windows 11
  • Browser: Chromium
  • main at efa50011, tested on local anvil chains with chain ids 11155111 and 63
Impact

High - Major feature is broken (a cancelled invoice can't be restored)

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Lenguaje dominante
JavaScript
Estrellas
13
Forks
62
Merge medio
2 d 14 h
PR fusionados (30 d)
18

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 StabilityNexus/Chainvoice

Todos los issues de StabilityNexus/Chainvoice

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.