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 d36033b commit ad02020Copy full SHA for ad02020
src/vms/common/unsignedTx.ts
@@ -173,10 +173,13 @@ export class UnsignedTx {
173
174
private addSignatureForPubKey(sig: Uint8Array, publicKey: Uint8Array) {
175
const coordinates = this.getSigIndicesForPubKey(publicKey);
176
- if (coordinates) {
177
- coordinates.forEach(([index, subIndex]) => {
178
- this.addSignatureAt(sig, index, subIndex);
179
- });
+ for (let i = 0; i < this.credentials.length; i++) {
+ if (coordinates) {
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
+ coordinates.forEach(([_, subIndex]) => {
180
+ this.addSignatureAt(sig, i, subIndex);
181
+ });
182
+ }
183
}
184
185
0 commit comments