From 6aea35246b665d49a28dc35a079f735e1c1d2436 Mon Sep 17 00:00:00 2001 From: alderzhang Date: Tue, 15 Mar 2022 15:22:51 +0800 Subject: [PATCH] fix decodeUpdateV2 bug --- src/utils/updates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/updates.js b/src/utils/updates.js index f770cd4b..950f1413 100644 --- a/src/utils/updates.js +++ b/src/utils/updates.js @@ -125,7 +125,7 @@ export const decodeUpdate = (update) => decodeUpdateV2(update, UpdateDecoderV1) */ export const decodeUpdateV2 = (update, YDecoder = UpdateDecoderV2) => { const structs = [] - const updateDecoder = new UpdateDecoderV1(decoding.createDecoder(update)) + const updateDecoder = new YDecoder(decoding.createDecoder(update)) const lazyDecoder = new LazyStructReader(updateDecoder, false) for (let curr = lazyDecoder.curr; curr !== null; curr = lazyDecoder.next()) { structs.push(curr)