@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.
@@ -189,15 +189,16 @@ class PublicKey extends Struct {
189
189
  return this.toBase58();
190
190
  }
191
191
  /**
192
- * Return the byte array representation of the public key
192
+ * Return the byte array representation of the public key in big endian
193
193
  */
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
- * Return the Buffer representation of the public key
201
+ * Return the Buffer representation of the public key in big endian
201
202
  */
202
203
 
203
204
 
@@ -3869,6 +3870,7 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(type({
3869
3870
 
3870
3871
  function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
3871
3872
  const fetch = customFetch ? customFetch : fetchImpl;
3873
+ let agent;
3872
3874
 
3873
3875
  {
3874
3876
  if (httpAgent != null) {
@@ -3892,7 +3894,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3892
3894
  }
3893
3895
 
3894
3896
  const clientBrowser = new RpcClient(async (request, callback) => {
3895
- const agent = undefined;
3896
3897
  const options = {
3897
3898
  method: 'POST',
3898
3899
  body: request,
@@ -3944,7 +3945,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3944
3945
  }
3945
3946
  } catch (err) {
3946
3947
  if (err instanceof Error) callback(err);
3947
- } finally {
3948
3948
  }
3949
3949
  }, {});
3950
3950
  return clientBrowser;
@@ -10258,7 +10258,7 @@ function clusterApiUrl(cluster, tls) {
10258
10258
  *
10259
10259
  * @param {Connection} connection
10260
10260
  * @param {Buffer} rawTransaction
10261
- * @param {BlockheightBasedTransactionConfirmationStrategy} confirmationStrategy
10261
+ * @param {TransactionConfirmationStrategy} confirmationStrategy
10262
10262
  * @param {ConfirmOptions} [options]
10263
10263
  * @returns {Promise<TransactionSignature>}
10264
10264
  */