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

Aperta
#367 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@kansalakshat ci sta già lavorando.

Dal 15/11/2026.

  • #368 di @kansalakshat — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
frontend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
JavaScript
Stelle
13
Fork
62
Merge medio
2g 14h
PR unite (30g)
18

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di StabilityNexus/Chainvoice

Tutte le issue di StabilityNexus/Chainvoice

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.