@leofcoin/chain 1.8.18 → 1.8.19

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.
@@ -5112,7 +5112,7 @@ class State extends Contract {
5112
5112
  };
5113
5113
  this.#lastBlockHandler = async () => {
5114
5114
  return new globalThis.peernet.protos['peernet-response']({
5115
- response: new LastBlockMessage(await this.lastBlock).decoded
5115
+ response: new LastBlockMessage(await this.lastBlock).encoded
5116
5116
  });
5117
5117
  };
5118
5118
  this.#knownBlocksHandler = async () => {
package/exports/chain.js CHANGED
@@ -1253,7 +1253,7 @@ class State extends Contract {
1253
1253
  };
1254
1254
  this.#lastBlockHandler = async () => {
1255
1255
  return new globalThis.peernet.protos['peernet-response']({
1256
- response: new LastBlockMessage(await this.lastBlock).decoded
1256
+ response: new LastBlockMessage(await this.lastBlock).encoded
1257
1257
  });
1258
1258
  };
1259
1259
  this.#knownBlocksHandler = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.8.18",
3
+ "version": "1.8.19",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {