@solana/web3.js 1.70.0 → 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.
package/lib/index.cjs.js CHANGED
@@ -132,6 +132,7 @@ class Enum extends Struct {
132
132
  }
133
133
  const SOLANA_SCHEMA = new Map();
134
134
 
135
+ let _Symbol$toStringTag;
135
136
  /**
136
137
  * Maximum length of derived pubkey seed
137
138
  */
@@ -156,6 +157,7 @@ let uniquePublicKeyCounter = 1;
156
157
  * A public key
157
158
  */
158
159
 
160
+ _Symbol$toStringTag = Symbol.toStringTag;
159
161
  class PublicKey extends Struct {
160
162
  /** @internal */
161
163
 
@@ -246,6 +248,10 @@ class PublicKey extends Struct {
246
248
  b.copy(zeroPad, 32 - b.length);
247
249
  return zeroPad;
248
250
  }
251
+
252
+ get [_Symbol$toStringTag]() {
253
+ return `PublicKey(${this.toString()})`;
254
+ }
249
255
  /**
250
256
  * Return the base-58 representation of the public key
251
257
  */