@solana/web3.js 1.62.1 → 1.63.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.iife.js CHANGED
@@ -12629,6 +12629,14 @@ var solanaWeb3 = (function (exports) {
12629
12629
  }
12630
12630
  }
12631
12631
 
12632
+ addSignature(publicKey, signature) {
12633
+ assert$1(signature.byteLength === 64, 'Signature must be 64 bytes long');
12634
+ const signerPubkeys = this.message.staticAccountKeys.slice(0, this.message.header.numRequiredSignatures);
12635
+ const signerIndex = signerPubkeys.findIndex(pubkey => pubkey.equals(publicKey));
12636
+ assert$1(signerIndex >= 0, `Can not add signature; \`${publicKey.toBase58()}\` is not required to sign this transaction`);
12637
+ this.signatures[signerIndex] = signature;
12638
+ }
12639
+
12632
12640
  }
12633
12641
 
12634
12642
  const SYSVAR_CLOCK_PUBKEY = new PublicKey('SysvarC1ock11111111111111111111111111111111');