From 87e7533dcfdad99c534b5f54f63e2c1ccb08d769 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sun, 23 Jul 2023 10:18:16 -0400 Subject: [PATCH] fix: change argument to be the current update, not the 0 index --- src/baseClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/baseClient.ts b/src/baseClient.ts index 7202a6d..b6146e2 100644 --- a/src/baseClient.ts +++ b/src/baseClient.ts @@ -145,7 +145,7 @@ export default abstract class BaseClient extends EventEmitter { startCommittee = validOrCommittee as Uint8Array[]; - this.emit("update", i, updates.length); + this.emit("update", i + 1, updates.length); if (this.options.syncDelay) { await new Promise((resolve) =>