Skip to content

Commit ad02020

Browse files
chore: add sig to all credentials
1 parent d36033b commit ad02020

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/vms/common/unsignedTx.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,13 @@ export class UnsignedTx {
173173

174174
private addSignatureForPubKey(sig: Uint8Array, publicKey: Uint8Array) {
175175
const coordinates = this.getSigIndicesForPubKey(publicKey);
176-
if (coordinates) {
177-
coordinates.forEach(([index, subIndex]) => {
178-
this.addSignatureAt(sig, index, subIndex);
179-
});
176+
for (let i = 0; i < this.credentials.length; i++) {
177+
if (coordinates) {
178+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
179+
coordinates.forEach(([_, subIndex]) => {
180+
this.addSignatureAt(sig, i, subIndex);
181+
});
182+
}
180183
}
181184
}
182185

0 commit comments

Comments
 (0)