We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad02020 commit bb2d17eCopy full SHA for bb2d17e
src/vms/common/unsignedTx.ts
@@ -173,12 +173,13 @@ export class UnsignedTx {
173
174
private addSignatureForPubKey(sig: Uint8Array, publicKey: Uint8Array) {
175
const coordinates = this.getSigIndicesForPubKey(publicKey);
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);
+ for (let i = 0; i < this.getCredentials().length; i++) {
+ if (coordinates[i]) {
+ coordinates.forEach(([index, subIndex]) => {
+ this.addSignatureAt(sig, index, subIndex);
181
});
+ } else {
182
+ this.addSignatureAt(sig, i, 0);
183
}
184
185
0 commit comments