@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.browser.cjs.js +6 -0
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +6 -0
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +6 -0
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +6 -0
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +6 -0
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +6 -0
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/publickey.ts +4 -0
package/lib/index.d.ts
CHANGED
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
|
*/
|