@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.cjs.js
CHANGED
|
@@ -224,7 +224,8 @@ class PublicKey extends Struct {
|
|
|
224
224
|
|
|
225
225
|
|
|
226
226
|
toBytes() {
|
|
227
|
-
|
|
227
|
+
const buf = this.toBuffer();
|
|
228
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
228
229
|
}
|
|
229
230
|
/**
|
|
230
231
|
* Return the Buffer representation of the public key in big endian
|
|
@@ -1865,12 +1866,14 @@ class Transaction {
|
|
|
1865
1866
|
this.signatures[index].signature = buffer.Buffer.from(signature);
|
|
1866
1867
|
}
|
|
1867
1868
|
/**
|
|
1868
|
-
* Verify signatures of a
|
|
1869
|
+
* Verify signatures of a Transaction
|
|
1870
|
+
* Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
|
|
1871
|
+
* If no boolean is provided, we expect a fully signed Transaction by default.
|
|
1869
1872
|
*/
|
|
1870
1873
|
|
|
1871
1874
|
|
|
1872
|
-
verifySignatures() {
|
|
1873
|
-
return this._verifySignatures(this.serializeMessage(), true);
|
|
1875
|
+
verifySignatures(requireAllSignatures) {
|
|
1876
|
+
return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
|
|
1874
1877
|
}
|
|
1875
1878
|
/**
|
|
1876
1879
|
* @internal
|
|
@@ -10287,7 +10290,7 @@ function clusterApiUrl(cluster, tls) {
|
|
|
10287
10290
|
*
|
|
10288
10291
|
* @param {Connection} connection
|
|
10289
10292
|
* @param {Buffer} rawTransaction
|
|
10290
|
-
* @param {
|
|
10293
|
+
* @param {TransactionConfirmationStrategy} confirmationStrategy
|
|
10291
10294
|
* @param {ConfirmOptions} [options]
|
|
10292
10295
|
* @returns {Promise<TransactionSignature>}
|
|
10293
10296
|
*/
|