@solana/web3.js 1.70.0-pr-29130-2 → 1.70.1

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.
@@ -126,6 +126,7 @@ class Enum extends Struct {
126
126
  }
127
127
  const SOLANA_SCHEMA = new Map();
128
128
 
129
+ let _Symbol$toStringTag;
129
130
  /**
130
131
  * Maximum length of derived pubkey seed
131
132
  */
@@ -150,6 +151,7 @@ let uniquePublicKeyCounter = 1;
150
151
  * A public key
151
152
  */
152
153
 
154
+ _Symbol$toStringTag = Symbol.toStringTag;
153
155
  class PublicKey extends Struct {
154
156
  /** @internal */
155
157
 
@@ -240,6 +242,10 @@ class PublicKey extends Struct {
240
242
  b.copy(zeroPad, 32 - b.length);
241
243
  return zeroPad;
242
244
  }
245
+
246
+ get [_Symbol$toStringTag]() {
247
+ return `PublicKey(${this.toString()})`;
248
+ }
243
249
  /**
244
250
  * Return the base-58 representation of the public key
245
251
  */
@@ -3893,7 +3899,6 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(superstruct.type({
3893
3899
 
3894
3900
  function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
3895
3901
  const fetch = customFetch ? customFetch : fetchImpl;
3896
- let agent;
3897
3902
 
3898
3903
  {
3899
3904
  if (httpAgent != null) {
@@ -3917,6 +3922,7 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3917
3922
  }
3918
3923
 
3919
3924
  const clientBrowser = new RpcClient__default["default"](async (request, callback) => {
3925
+ const agent = undefined;
3920
3926
  const options = {
3921
3927
  method: 'POST',
3922
3928
  body: request,
@@ -3968,6 +3974,7 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
3968
3974
  }
3969
3975
  } catch (err) {
3970
3976
  if (err instanceof Error) callback(err);
3977
+ } finally {
3971
3978
  }
3972
3979
  }, {});
3973
3980
  return clientBrowser;