@solana/web3.js 1.70.1 → 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.
@@ -219,15 +219,16 @@ class PublicKey extends Struct {
219
219
  return this.toBase58();
220
220
  }
221
221
  /**
222
- * Return the byte array representation of the public key
222
+ * Return the byte array representation of the public key in big endian
223
223
  */
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
- * Return the Buffer representation of the public key
231
+ * Return the Buffer representation of the public key in big endian
231
232
  */
232
233
 
233
234
 
@@ -3899,6 +3900,7 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(superstruct.type({
3899
3900
 
3900
3901
  function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
3901
3902
  const fetch = customFetch ? customFetch : fetchImpl;
3903
+ let agent;
3902
3904
 
3903
3905
  {
3904
3906
  if (httpAgent != null) {
@@ -3922,7 +3924,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3922
3924
  }
3923
3925
 
3924
3926
  const clientBrowser = new RpcClient__default["default"](async (request, callback) => {
3925
- const agent = undefined;
3926
3927
  const options = {
3927
3928
  method: 'POST',
3928
3929
  body: request,
@@ -3974,7 +3975,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3974
3975
  }
3975
3976
  } catch (err) {
3976
3977
  if (err instanceof Error) callback(err);
3977
- } finally {
3978
3978
  }
3979
3979
  }, {});
3980
3980
  return clientBrowser;
@@ -10288,7 +10288,7 @@ function clusterApiUrl(cluster, tls) {
10288
10288
  *
10289
10289
  * @param {Connection} connection
10290
10290
  * @param {Buffer} rawTransaction
10291
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
10291
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
10292
10292
  * @param {ConfirmOptions} [options]
10293
10293
  * @returns {Promise<TransactionSignature>}
10294
10294
  */