@solana/web3.js 1.70.2 → 1.70.3

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.cjs.js CHANGED
@@ -240,7 +240,8 @@ class PublicKey extends Struct {
240
240
 
241
241
 
242
242
  toBytes() {
243
- return this.toBuffer();
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
@@ -12747,7 +12748,7 @@ function clusterApiUrl(cluster, tls) {
12747
12748
  *
12748
12749
  * @param {Connection} connection
12749
12750
  * @param {Buffer} rawTransaction
12750
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
12751
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
12751
12752
  * @param {ConfirmOptions} [options]
12752
12753
  * @returns {Promise<TransactionSignature>}
12753
12754
  */