@solana/web3.js 1.70.2 → 1.71.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
@@ -8399,7 +8399,8 @@ var solanaWeb3 = (function (exports) {
8399
8399
 
8400
8400
 
8401
8401
  toBytes() {
8402
- return this.toBuffer();
8402
+ const buf = this.toBuffer();
8403
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
8403
8404
  }
8404
8405
  /**
8405
8406
  * Return the Buffer representation of the public key in big endian
@@ -12323,12 +12324,14 @@ var solanaWeb3 = (function (exports) {
12323
12324
  this.signatures[index].signature = buffer.Buffer.from(signature);
12324
12325
  }
12325
12326
  /**
12326
- * Verify signatures of a complete, signed Transaction
12327
+ * Verify signatures of a Transaction
12328
+ * Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
12329
+ * If no boolean is provided, we expect a fully signed Transaction by default.
12327
12330
  */
12328
12331
 
12329
12332
 
12330
- verifySignatures() {
12331
- return this._verifySignatures(this.serializeMessage(), true);
12333
+ verifySignatures(requireAllSignatures) {
12334
+ return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
12332
12335
  }
12333
12336
  /**
12334
12337
  * @internal
@@ -25128,7 +25131,7 @@ var solanaWeb3 = (function (exports) {
25128
25131
  *
25129
25132
  * @param {Connection} connection
25130
25133
  * @param {Buffer} rawTransaction
25131
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
25134
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
25132
25135
  * @param {ConfirmOptions} [options]
25133
25136
  * @returns {Promise<TransactionSignature>}
25134
25137
  */