[BUG]: Cancel dialog stays open after a network switch and cancels the invoice with the same id on the new chain
メンテナーはふだん 2 日以内に返信
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 64/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- JavaScript
- スター
- 13
- フォーク
- 62
- 平均マージ
- 2日 14時間
- マージ済み PR(30日)
- 18
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
StabilityNexus/Chainvoice のほかの issue
-
[BUG]: Smart Batch Suggestions ignore active filters and select invoices hidden from the table対応中かも @anshulchikhale30-p が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
StabilityNexus/Chainvoice#331 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: Invoices with the same date are sorted out of order (ids compared as strings)対応中かも @anshulchikhale30-p が 15 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
StabilityNexus/Chainvoice#330 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: Stale token-list requests can overwrite state after switching networks対応中かも @JANAKIRAM218 が 10 日前に担当しました。 オープンbug enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
StabilityNexus/Chainvoice#325 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: Invoice PDF totals overlap the footer with 10 line items再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
StabilityNexus/Chainvoice#310 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
[BUG]: Batch invoice summary truncates displayed amount precision to four decimal places対応中かも @JANAKIRAM218 が 29 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
StabilityNexus/Chainvoice#294 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
StabilityNexus/Chainvoice の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1時間未満 初心者へのやさしさ 82/100
Leonxlnx/taste-skill#216 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
all-contributors/cli#690 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信