[BUG]: Cancel dialog stays open after a network switch and cancels the invoice with the same id on the new chain
I maintainer di solito rispondono entro 2 giorni
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 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
- Have an unpaid sent invoice with the same id on two supported chains (e.g. Sepolia and Mordor).
- Open Sent Invoices on Sepolia and click Cancel on it.
- With the dialog open, switch the wallet to Mordor.
- 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.
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
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di StabilityNexus/Chainvoice
-
[BUG]: Smart Batch Suggestions ignore active filters and select invoices hidden from the tableForse già presa @anshulchikhale30-p l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
StabilityNexus/Chainvoice#331 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Invoices with the same date are sorted out of order (ids compared as strings)Forse già presa @anshulchikhale30-p l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
StabilityNexus/Chainvoice#330 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Stale token-list requests can overwrite state after switching networksForse già presa @JANAKIRAM218 l’ha presa 10 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
StabilityNexus/Chainvoice#325 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Invoice PDF totals overlap the footer with 10 line itemsForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
StabilityNexus/Chainvoice#310 · 4 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
[BUG]: Batch invoice summary truncates displayed amount precision to four decimal placesForse già presa @JANAKIRAM218 l’ha presa 29 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
StabilityNexus/Chainvoice#294 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di StabilityNexus/Chainvoice
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 Meno di un'ora Idoneità per principianti 82/100
Leonxlnx/taste-skill#216 ·
I maintainer di solito rispondono entro 1 giorno
-
Docs: 11 broken linksAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
all-contributors/cli#690 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno