@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.cjs.js
CHANGED
|
@@ -240,7 +240,8 @@ class PublicKey extends Struct {
|
|
|
240
240
|
|
|
241
241
|
|
|
242
242
|
toBytes() {
|
|
243
|
-
|
|
243
|
+
const buf = this.toBuffer();
|
|
244
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
244
245
|
}
|
|
245
246
|
/**
|
|
246
247
|
* Return the Buffer representation of the public key in big endian
|
|
@@ -1881,12 +1882,14 @@ class Transaction {
|
|
|
1881
1882
|
this.signatures[index].signature = buffer.Buffer.from(signature);
|
|
1882
1883
|
}
|
|
1883
1884
|
/**
|
|
1884
|
-
* Verify signatures of a
|
|
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.
|
|
1885
1888
|
*/
|
|
1886
1889
|
|
|
1887
1890
|
|
|
1888
|
-
verifySignatures() {
|
|
1889
|
-
return this._verifySignatures(this.serializeMessage(), true);
|
|
1891
|
+
verifySignatures(requireAllSignatures) {
|
|
1892
|
+
return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
|
|
1890
1893
|
}
|
|
1891
1894
|
/**
|
|
1892
1895
|
* @internal
|
|
@@ -12747,7 +12750,7 @@ function clusterApiUrl(cluster, tls) {
|
|
|
12747
12750
|
*
|
|
12748
12751
|
* @param {Connection} connection
|
|
12749
12752
|
* @param {Buffer} rawTransaction
|
|
12750
|
-
* @param {
|
|
12753
|
+
* @param {TransactionConfirmationStrategy} confirmationStrategy
|
|
12751
12754
|
* @param {ConfirmOptions} [options]
|
|
12752
12755
|
* @returns {Promise<TransactionSignature>}
|
|
12753
12756
|
*/
|