@leofcoin/chain 1.4.77 → 1.4.78

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.
@@ -1952,6 +1952,7 @@ class State extends Contract {
1952
1952
  catch (error) {
1953
1953
  console.log({ e: error });
1954
1954
  }
1955
+ globalThis.pubsub.publish('lastBlock', this.lastBlock);
1955
1956
  // load local blocks
1956
1957
  await this.resolveBlocks();
1957
1958
  this.#machine = await new Machine(this.#blocks);
package/exports/chain.js CHANGED
@@ -578,6 +578,7 @@ class State extends Contract {
578
578
  catch (error) {
579
579
  console.log({ e: error });
580
580
  }
581
+ globalThis.pubsub.publish('lastBlock', this.lastBlock);
581
582
  // load local blocks
582
583
  await this.resolveBlocks();
583
584
  this.#machine = await new Machine(this.#blocks);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.77",
3
+ "version": "1.4.78",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": "./exports/node.js",