@leofcoin/chain 1.5.41 → 1.5.42

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.
@@ -4696,7 +4696,7 @@ class VersionControl extends State {
4696
4696
  constructor(config) {
4697
4697
  super(config);
4698
4698
  }
4699
- #currentVersion;
4699
+ #currentVersion = '1.2.0';
4700
4700
  async #setCurrentVersion() {
4701
4701
  this.version = this.#currentVersion;
4702
4702
  await globalThis.chainStore.put('version', this.version);
@@ -4706,7 +4706,7 @@ class VersionControl extends State {
4706
4706
  try {
4707
4707
  const version = await globalThis.chainStore.get('version');
4708
4708
  this.version = new TextDecoder().decode(version);
4709
- console.log(this.version);
4709
+ console.log(this.version, this.#currentVersion);
4710
4710
  /**
4711
4711
  * protocol version control!
4712
4712
  * note v1 and 1.1 delete everything because of big changes, this is not what we want in the future
package/exports/chain.js CHANGED
@@ -1107,7 +1107,7 @@ class VersionControl extends State {
1107
1107
  constructor(config) {
1108
1108
  super(config);
1109
1109
  }
1110
- #currentVersion;
1110
+ #currentVersion = '1.2.0';
1111
1111
  async #setCurrentVersion() {
1112
1112
  this.version = this.#currentVersion;
1113
1113
  await globalThis.chainStore.put('version', this.version);
@@ -1117,7 +1117,7 @@ class VersionControl extends State {
1117
1117
  try {
1118
1118
  const version = await globalThis.chainStore.get('version');
1119
1119
  this.version = new TextDecoder().decode(version);
1120
- console.log(this.version);
1120
+ console.log(this.version, this.#currentVersion);
1121
1121
  /**
1122
1122
  * protocol version control!
1123
1123
  * note v1 and 1.1 delete everything because of big changes, this is not what we want in the future
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.41",
3
+ "version": "1.5.42",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {