@leofcoin/chain 1.4.19 → 1.4.20

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/chain.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.4.19",
3
+ "version": "1.4.20",
4
4
  "description": "Official javascript implementation",
5
5
  "main": "./dist/node.js",
6
6
  "module": "./dist/chain.esm",
package/src/chain.js CHANGED
@@ -296,7 +296,7 @@ export default class Chain extends Contract {
296
296
  const end = this.#blocks.length
297
297
  const start = (this.#blocks.length - blocksSynced) - 1
298
298
  await this.#loadBlocks(this.blocks.slice(start))
299
- await this.#updateState(this.#blocks[this.#blocks.length - 1])
299
+ await this.#updateState(new BlockMessage(this.#blocks[this.#blocks.length - 1]))
300
300
  this.#chainSyncing = false
301
301
  }
302
302
  }