@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.iife.js
CHANGED
|
@@ -8399,7 +8399,8 @@ var solanaWeb3 = (function (exports) {
|
|
|
8399
8399
|
|
|
8400
8400
|
|
|
8401
8401
|
toBytes() {
|
|
8402
|
-
|
|
8402
|
+
const buf = this.toBuffer();
|
|
8403
|
+
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
|
|
8403
8404
|
}
|
|
8404
8405
|
/**
|
|
8405
8406
|
* Return the Buffer representation of the public key in big endian
|
|
@@ -12323,12 +12324,14 @@ var solanaWeb3 = (function (exports) {
|
|
|
12323
12324
|
this.signatures[index].signature = buffer.Buffer.from(signature);
|
|
12324
12325
|
}
|
|
12325
12326
|
/**
|
|
12326
|
-
* Verify signatures of a
|
|
12327
|
+
* Verify signatures of a Transaction
|
|
12328
|
+
* Optional parameter specifies if we're expecting a fully signed Transaction or a partially signed one.
|
|
12329
|
+
* If no boolean is provided, we expect a fully signed Transaction by default.
|
|
12327
12330
|
*/
|
|
12328
12331
|
|
|
12329
12332
|
|
|
12330
|
-
verifySignatures() {
|
|
12331
|
-
return this._verifySignatures(this.serializeMessage(), true);
|
|
12333
|
+
verifySignatures(requireAllSignatures) {
|
|
12334
|
+
return this._verifySignatures(this.serializeMessage(), requireAllSignatures === undefined ? true : requireAllSignatures);
|
|
12332
12335
|
}
|
|
12333
12336
|
/**
|
|
12334
12337
|
* @internal
|
|
@@ -25128,7 +25131,7 @@ var solanaWeb3 = (function (exports) {
|
|
|
25128
25131
|
*
|
|
25129
25132
|
* @param {Connection} connection
|
|
25130
25133
|
* @param {Buffer} rawTransaction
|
|
25131
|
-
* @param {
|
|
25134
|
+
* @param {TransactionConfirmationStrategy} confirmationStrategy
|
|
25132
25135
|
* @param {ConfirmOptions} [options]
|
|
25133
25136
|
* @returns {Promise<TransactionSignature>}
|
|
25134
25137
|
*/
|