@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.browser.cjs.js +5 -3
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +5 -3
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +5 -3
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.esm.js +5 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +5 -3
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +5 -3
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/transaction/legacy.ts +9 -4
package/lib/index.d.ts
CHANGED
|
@@ -1872,9 +1872,11 @@ declare module '@solana/web3.js' {
|
|
|
1872
1872
|
*/
|
|
1873
1873
|
addSignature(pubkey: PublicKey, signature: Buffer): void;
|
|
1874
1874
|
/**
|
|
1875
|
-
* Verify signatures of a
|
|
1875
|
+
* Verify signatures of a Transaction
|
|
1876
|
+
* Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
|
|
1877
|
+
* If no boolean is provided, we expect a fully signed Transaction by default.
|
|
1876
1878
|
*/
|
|
1877
|
-
verifySignatures(): boolean;
|
|
1879
|
+
verifySignatures(requireAllSignatures?: boolean): boolean;
|
|
1878
1880
|
/**
|
|
1879
1881
|
* Serialize the Transaction in the wire format.
|
|
1880
1882
|
*/
|
package/lib/index.esm.js
CHANGED
|
@@ -1844,12 +1844,14 @@ class Transaction {
|
|
|
1844
1844
|
this.signatures[index].signature = Buffer.from(signature);
|
|
1845
1845
|
}
|
|
1846
1846
|
/**
|
|
1847
|
-
* Verify signatures of a
|
|
1847
|
+
* Verify signatures of a Transaction
|
|
1848
|
+
* Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
|
|
1849
|
+
* If no boolean is provided, we expect a fully signed Transaction by default.
|
|
1848
1850
|
*/
|
|
1849
1851
|
|
|
1850
1852
|
|
|
1851
|
-
verifySignatures() {
|
|
1852
|
-
return this._verifySignatures(this.serializeMessage(), true);
|
|
1853
|
+
verifySignatures(requireAllSignatures) {
|
|
1854
|
+
return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
|
|
1853
1855
|
}
|
|
1854
1856
|
/**
|
|
1855
1857
|
* @internal
|