@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.d.ts CHANGED
@@ -73,6 +73,7 @@ declare module '@solana/web3.js' {
73
73
  * Return the Buffer representation of the public key
74
74
  */
75
75
  toBuffer(): Buffer;
76
+ get [Symbol.toStringTag](): string;
76
77
  /**
77
78
  * Return the base-58 representation of the public key
78
79
  */
package/lib/index.esm.js CHANGED
@@ -99,6 +99,7 @@ class Enum extends Struct {
99
99
  }
100
100
  const SOLANA_SCHEMA = new Map();
101
101
 
102
+ let _Symbol$toStringTag;
102
103
  /**
103
104
  * Maximum length of derived pubkey seed
104
105
  */
@@ -123,6 +124,7 @@ let uniquePublicKeyCounter = 1;
123
124
  * A public key
124
125
  */
125
126
 
127
+ _Symbol$toStringTag = Symbol.toStringTag;
126
128
  class PublicKey extends Struct {
127
129
  /** @internal */
128
130
 
@@ -213,6 +215,10 @@ class PublicKey extends Struct {
213
215
  b.copy(zeroPad, 32 - b.length);
214
216
  return zeroPad;
215
217
  }
218
+
219
+ get [_Symbol$toStringTag]() {
220
+ return `PublicKey(${this.toString()})`;
221
+ }
216
222
  /**
217
223
  * Return the base-58 representation of the public key
218
224
  */