@leofcoin/chain 1.4.49 → 1.4.50
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/exports/browser/chain.js +1 -1
- package/exports/chain.js +1 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -8066,7 +8066,7 @@ class Chain extends Contract {
|
|
|
8066
8066
|
async #init() {
|
|
8067
8067
|
try {
|
|
8068
8068
|
const version = await globalThis.chainStore.get('version');
|
|
8069
|
-
this.version = version;
|
|
8069
|
+
this.version = new TextDecoder().decode(version);
|
|
8070
8070
|
if (version !== '1.0.0') {
|
|
8071
8071
|
this.version = '1.0.0';
|
|
8072
8072
|
await globalThis.chainStore.clear();
|
package/exports/chain.js
CHANGED
|
@@ -661,7 +661,7 @@ class Chain extends Contract {
|
|
|
661
661
|
async #init() {
|
|
662
662
|
try {
|
|
663
663
|
const version = await globalThis.chainStore.get('version');
|
|
664
|
-
this.version = version;
|
|
664
|
+
this.version = new TextDecoder().decode(version);
|
|
665
665
|
if (version !== '1.0.0') {
|
|
666
666
|
this.version = '1.0.0';
|
|
667
667
|
await globalThis.chainStore.clear();
|