[BUG] disconnectAll() doesn't emit an individual disconnect event per wallet, only a single generic 'allDisconnected' event

オープン 初心者向け
#1,007 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
api

調査の方向性

まず、wallet manager の disconnectAll() の実装と、各 wallet の disconnected イベントを発行するコードを特定してください。issue ではこれらのイベント経路が示されていますが、ファイル名やテスト名は記載されていません。最初に既存の wallet イベントテストを確認し、次に2つの wallet のケースを再現して、一括切断の完了時に各 wallet が disconnected を発行することを検証してください。

索引モデルが issue の本文から書いたものです。

説明

bug difficulty: easy good first issue priority: low sdk security

Description

disconnectAll() disconnects every connected wallet in a multi-wallet session but only emits one generic allDisconnected event rather than the usual per-wallet disconnected event for each one, breaking any listener registered for the normal per-wallet event.

Component

wallet

Steps to Reproduce

  1. Connect two wallets.
  2. Register a disconnected event listener (the normal per-wallet event).
  3. Call disconnectAll().

Expected Behavior

disconnectAll() should emit the normal per-wallet disconnected event for each wallet being disconnected, in addition to (or instead of) any aggregate event.

Actual Behavior

Listeners registered for the standard per-wallet disconnect event never fire during a bulk disconnect, silently missing state changes they'd normally react to.

Environment

  • SDK version: 0.3.x
  • Node version: 20.x, 22.x
  • OS: macOS / Linux
  • Network: TESTNET

Code Example

await walletManager.disconnectAll();

Error Output

N/A — no thrown error; behavior is incorrect but silent.

Difficulty

🟢 Easy

Additional Context

disconnectAll() was implemented as a separate code path that emits its own aggregate event instead of looping and emitting the standard per-wallet event for each.

主要言語
TypeScript
スター
0
フォーク
73
平均マージ
6時間 26分
マージ済み PR(30日)
37

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

trustflow-protocol/trustflow-sdk のほかの issue

trustflow-protocol/trustflow-sdk の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。