@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.
@@ -224,7 +224,8 @@ class PublicKey extends Struct {
224
224
 
225
225
 
226
226
  toBytes() {
227
- return this.toBuffer();
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
@@ -10287,7 +10288,7 @@ function clusterApiUrl(cluster, tls) {
10287
10288
  *
10288
10289
  * @param {Connection} connection
10289
10290
  * @param {Buffer} rawTransaction
10290
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
10291
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
10291
10292
  * @param {ConfirmOptions} [options]
10292
10293
  * @returns {Promise<TransactionSignature>}
10293
10294
  */