From 5af2a86e4149f362ffacc81b2f7a7bd72b449905 Mon Sep 17 00:00:00 2001 From: JesseTheRobot Date: Thu, 21 Dec 2023 14:40:21 +0000 Subject: [PATCH] fix: :bug: Signers/multiSignatureAptos: Fix signature packing bug --- src/signing/chains/multiSignatureAptos.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/signing/chains/multiSignatureAptos.ts b/src/signing/chains/multiSignatureAptos.ts index 7f2714c..03b1195 100644 --- a/src/signing/chains/multiSignatureAptos.ts +++ b/src/signing/chains/multiSignatureAptos.ts @@ -54,7 +54,7 @@ export default class MultiSignatureAptosSigner implements Signer { const signature = Buffer.alloc(this.signatureLength); let sigPos = 0; for (let i = 0; i < 32; i++) { - if (bitmap.includes(i)) { + if (bits.includes(i)) { signature.set(signatures[sigPos++], i * 64); } }