@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.
- package/exports/browser/chain.js +1 -0
- package/exports/chain.js +1 -0
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -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);
|