@leofcoin/chain 1.5.53 → 1.5.55

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.
@@ -3884,9 +3884,9 @@ class Machine {
3884
3884
  await accountsStore.put(from, nonce);
3885
3885
  }
3886
3886
  case 'contractError': {
3887
- console.warn(`removing contract ${await data.hash()}`);
3887
+ console.warn(`removing contract ${data.hash}`);
3888
3888
  // @ts-ignore
3889
- await contractStore.delete(await data.hash());
3889
+ await contractStore.delete(data.hash);
3890
3890
  break;
3891
3891
  }
3892
3892
  case 'initError': {
@@ -158,7 +158,7 @@ const _init = async ({ contracts, blocks, peerid }) => {
158
158
  }
159
159
  totalTransactions += 1;
160
160
 
161
- postMessage({
161
+ worker.postMessage({
162
162
  type: 'transactionLoaded',
163
163
  result: {
164
164
  hash: await new TransactionMessage(transaction).hash(),
package/exports/chain.js CHANGED
@@ -295,9 +295,9 @@ class Machine {
295
295
  await accountsStore.put(from, nonce);
296
296
  }
297
297
  case 'contractError': {
298
- console.warn(`removing contract ${await data.hash()}`);
298
+ console.warn(`removing contract ${data.hash}`);
299
299
  // @ts-ignore
300
- await contractStore.delete(await data.hash());
300
+ await contractStore.delete(data.hash);
301
301
  break;
302
302
  }
303
303
  case 'initError': {
@@ -158,7 +158,7 @@ const _init = async ({ contracts, blocks, peerid }) => {
158
158
  }
159
159
  totalTransactions += 1;
160
160
 
161
- postMessage({
161
+ worker.postMessage({
162
162
  type: 'transactionLoaded',
163
163
  result: {
164
164
  hash: await new TransactionMessage(transaction).hash(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.53",
3
+ "version": "1.5.55",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {