@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.
package/lib/index.iife.js CHANGED
@@ -8394,15 +8394,16 @@ var solanaWeb3 = (function (exports) {
8394
8394
  return this.toBase58();
8395
8395
  }
8396
8396
  /**
8397
- * Return the byte array representation of the public key
8397
+ * Return the byte array representation of the public key in big endian
8398
8398
  */
8399
8399
 
8400
8400
 
8401
8401
  toBytes() {
8402
- return this.toBuffer();
8402
+ const buf = this.toBuffer();
8403
+ return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength);
8403
8404
  }
8404
8405
  /**
8405
- * Return the Buffer representation of the public key
8406
+ * Return the Buffer representation of the public key in big endian
8406
8407
  */
8407
8408
 
8408
8409
 
@@ -17522,6 +17523,7 @@ var solanaWeb3 = (function (exports) {
17522
17523
 
17523
17524
  function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
17524
17525
  const fetch = customFetch ? customFetch : fetchImpl;
17526
+ let agent;
17525
17527
 
17526
17528
  {
17527
17529
  if (httpAgent != null) {
@@ -17545,7 +17547,6 @@ var solanaWeb3 = (function (exports) {
17545
17547
  }
17546
17548
 
17547
17549
  const clientBrowser = new RpcClient(async (request, callback) => {
17548
- const agent = undefined;
17549
17550
  const options = {
17550
17551
  method: 'POST',
17551
17552
  body: request,
@@ -17597,7 +17598,6 @@ var solanaWeb3 = (function (exports) {
17597
17598
  }
17598
17599
  } catch (err) {
17599
17600
  if (err instanceof Error) callback(err);
17600
- } finally {
17601
17601
  }
17602
17602
  }, {});
17603
17603
  return clientBrowser;
@@ -25129,7 +25129,7 @@ var solanaWeb3 = (function (exports) {
25129
25129
  *
25130
25130
  * @param {Connection} connection
25131
25131
  * @param {Buffer} rawTransaction
25132
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
25132
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
25133
25133
  * @param {ConfirmOptions} [options]
25134
25134
  * @returns {Promise<TransactionSignature>}
25135
25135
  */