@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.browser.cjs.js +8 -5
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +8 -5
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +8 -5
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +14 -8
- package/lib/index.esm.js +8 -5
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +8 -5
- 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 +8 -5
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +12 -11
- package/src/publickey.ts +2 -1
- package/src/transaction/legacy.ts +9 -4
- package/src/utils/send-and-confirm-raw-transaction.ts +5 -8
package/lib/index.browser.esm.js
CHANGED
|
@@ -194,7 +194,8 @@ class PublicKey extends Struct {
|
|
|
194
194
|
|
|
195
195
|
|
|
196
196
|
toBytes() {
|
|
197
|
-
|
|
197
|
+
const buf = this.toBuffer();
|
|
198
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
198
199
|
}
|
|
199
200
|
/**
|
|
200
201
|
* Return the Buffer representation of the public key in big endian
|
|
@@ -1835,12 +1836,14 @@ class Transaction {
|
|
|
1835
1836
|
this.signatures[index].signature = Buffer.from(signature);
|
|
1836
1837
|
}
|
|
1837
1838
|
/**
|
|
1838
|
-
* Verify signatures of a
|
|
1839
|
+
* Verify signatures of a Transaction
|
|
1840
|
+
* Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
|
|
1841
|
+
* If no boolean is provided, we expect a fully signed Transaction by default.
|
|
1839
1842
|
*/
|
|
1840
1843
|
|
|
1841
1844
|
|
|
1842
|
-
verifySignatures() {
|
|
1843
|
-
return this._verifySignatures(this.serializeMessage(), true);
|
|
1845
|
+
verifySignatures(requireAllSignatures) {
|
|
1846
|
+
return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
|
|
1844
1847
|
}
|
|
1845
1848
|
/**
|
|
1846
1849
|
* @internal
|
|
@@ -10257,7 +10260,7 @@ function clusterApiUrl(cluster, tls) {
|
|
|
10257
10260
|
*
|
|
10258
10261
|
* @param {Connection} connection
|
|
10259
10262
|
* @param {Buffer} rawTransaction
|
|
10260
|
-
* @param {
|
|
10263
|
+
* @param {TransactionConfirmationStrategy} confirmationStrategy
|
|
10261
10264
|
* @param {ConfirmOptions} [options]
|
|
10262
10265
|
* @returns {Promise<TransactionSignature>}
|
|
10263
10266
|
*/
|