@solana/web3.js 1.70.1 → 1.70.2

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,7 +189,7 @@ 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
 
@@ -197,7 +197,7 @@ class PublicKey extends Struct {
197
197
  return this.toBuffer();
198
198
  }
199
199
  /**
200
- * Return the Buffer representation of the public key
200
+ * Return the Buffer representation of the public key in big endian
201
201
  */
202
202
 
203
203
 
@@ -3869,6 +3869,7 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(type({
3869
3869
 
3870
3870
  function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
3871
3871
  const fetch = customFetch ? customFetch : fetchImpl;
3872
+ let agent;
3872
3873
 
3873
3874
  {
3874
3875
  if (httpAgent != null) {
@@ -3892,7 +3893,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3892
3893
  }
3893
3894
 
3894
3895
  const clientBrowser = new RpcClient(async (request, callback) => {
3895
- const agent = undefined;
3896
3896
  const options = {
3897
3897
  method: 'POST',
3898
3898
  body: request,
@@ -3944,7 +3944,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3944
3944
  }
3945
3945
  } catch (err) {
3946
3946
  if (err instanceof Error) callback(err);
3947
- } finally {
3948
3947
  }
3949
3948
  }, {});
3950
3949
  return clientBrowser;