@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.
@@ -194,7 +194,8 @@ class PublicKey extends Struct {
194
194
 
195
195
 
196
196
  toBytes() {
197
- return this.toBuffer();
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
@@ -10257,7 +10258,7 @@ function clusterApiUrl(cluster, tls) {
10257
10258
  *
10258
10259
  * @param {Connection} connection
10259
10260
  * @param {Buffer} rawTransaction
10260
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
10261
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
10261
10262
  * @param {ConfirmOptions} [options]
10262
10263
  * @returns {Promise<TransactionSignature>}
10263
10264
  */