@solana/web3.js 1.70.3 → 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.cjs.js CHANGED
@@ -1882,12 +1882,14 @@ class Transaction {
1882
1882
  this.signatures[index].signature = buffer.Buffer.from(signature);
1883
1883
  }
1884
1884
  /**
1885
- * Verify signatures of a complete, signed Transaction
1885
+ * Verify signatures of a Transaction
1886
+ * Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
1887
+ * If no boolean is provided, we expect a fully signed Transaction by default.
1886
1888
  */
1887
1889
 
1888
1890
 
1889
- verifySignatures() {
1890
- return this._verifySignatures(this.serializeMessage(), true);
1891
+ verifySignatures(requireAllSignatures) {
1892
+ return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
1891
1893
  }
1892
1894
  /**
1893
1895
  * @internal