fix: change argument to be the current update, not the 0 index

This commit is contained in:
Derrick Hammer 2023-07-23 10:18:16 -04:00
parent 259c64bcea
commit 87e7533dcf
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ export default abstract class BaseClient extends EventEmitter {
startCommittee = validOrCommittee as Uint8Array[]; startCommittee = validOrCommittee as Uint8Array[];
this.emit("update", i, updates.length); this.emit("update", i + 1, updates.length);
if (this.options.syncDelay) { if (this.options.syncDelay) {
await new Promise((resolve) => await new Promise((resolve) =>