@leofcoin/chain 1.5.65 → 1.5.67

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 (22) hide show
  1. package/exports/browser/{_polyfill-node.url-1q06MepH.js → _polyfill-node.url-Bp9XkJZf.js} +1 -1
  2. package/exports/browser/{browser-1GyRaZxg-C9SpI6hG.js → browser-Ei0BXMlu-C1_XUL9Y.js} +2 -2
  3. package/exports/browser/browser-store.js +122 -309
  4. package/exports/browser/chain.js +38 -14
  5. package/exports/browser/{client-UOCjJBGl-pbv-pTHd.js → client-A009z8av-DQfd3vOY.js} +5 -5
  6. package/exports/browser/{index-ub31QSed-EMPr2oeb.js → index-G74WLzL7-Dt2dwaXq.js} +2 -2
  7. package/exports/browser/{index-K4Kwju30-vS3fNpxy.js → index-YQrIDBUQ-c7011Ab4.js} +2 -2
  8. package/exports/browser/{messages-guyZfse6-JeAlT5Nb.js → messages-lWRTai7t-ClhClfC1.js} +2 -2
  9. package/exports/browser/{node-browser-0Ly80awM.js → node-browser-DqIklEKv.js} +624 -622
  10. package/exports/browser/node-browser.js +2 -2
  11. package/exports/browser/workers/block-worker.js +1 -1
  12. package/exports/browser/workers/machine-worker.js +1 -1
  13. package/exports/chain.js +8 -1
  14. package/exports/workers/block-worker.js +1 -1
  15. package/exports/workers/machine-worker.js +1 -1
  16. package/package.json +1 -1
  17. /package/exports/browser/{_polyfill-node.child_process-rc1HO9Xs.js → _polyfill-node.child_process-BsjYmFff.js} +0 -0
  18. /package/exports/browser/{browser-AyxSBUXj-AyxSBUXj.js → browser-AyxSBUXj-pguCHlVu.js} +0 -0
  19. /package/exports/browser/{password-JCRBtU5A.js → password-oDixGC8h.js} +0 -0
  20. /package/exports/browser/{qr-scanner-worker.min-RaSiJc_R-RaSiJc_R.js → qr-scanner-worker.min-RaSiJc_R-Dy0qkKA4.js} +0 -0
  21. /package/exports/browser/workers/{worker-hbo9s9AT.js → worker-CltAyHf1.js} +0 -0
  22. /package/exports/workers/{worker-hbo9s9AT.js → worker-CltAyHf1.js} +0 -0
@@ -1,2 +1,2 @@
1
- export { N as default } from './node-browser-0Ly80awM.js';
2
- import './_polyfill-node.child_process-rc1HO9Xs.js';
1
+ export { N as default } from './node-browser-DqIklEKv.js';
2
+ import './_polyfill-node.child_process-BsjYmFff.js';
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-hbo9s9AT.js';
1
+ import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-CltAyHf1.js';
2
2
 
3
3
  const worker = new EasyWorker();
4
4
 
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BigNumber, C as ContractMessage, T as TransactionMessage } from './worker-hbo9s9AT.js';
1
+ import { E as EasyWorker, B as BigNumber, C as ContractMessage, T as TransactionMessage } from './worker-CltAyHf1.js';
2
2
 
3
3
  const byteFormats = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
4
4
  const formatBytes = (bytes, decimals = 2) => {
package/exports/chain.js CHANGED
@@ -291,7 +291,14 @@ class Machine {
291
291
  case 'transactionLoaded': {
292
292
  const { from, nonce, hash } = data.result;
293
293
  (await transactionPoolStore.has(hash)) && (await transactionPoolStore.delete(hash));
294
- await accountsStore.put(from, nonce);
294
+ try {
295
+ const _nonce = await accountsStore.get(from);
296
+ if (nonce > _nonce)
297
+ await accountsStore.put(from, nonce);
298
+ }
299
+ catch (error) {
300
+ await accountsStore.put(from, nonce);
301
+ }
295
302
  break;
296
303
  }
297
304
  case 'contractError': {
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-hbo9s9AT.js';
1
+ import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-CltAyHf1.js';
2
2
 
3
3
  const worker = new EasyWorker();
4
4
 
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BigNumber, C as ContractMessage, T as TransactionMessage } from './worker-hbo9s9AT.js';
1
+ import { E as EasyWorker, B as BigNumber, C as ContractMessage, T as TransactionMessage } from './worker-CltAyHf1.js';
2
2
 
3
3
  const byteFormats = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
4
4
  const formatBytes = (bytes, decimals = 2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.5.65",
3
+ "version": "1.5.67",
4
4
  "description": "Official javascript implementation",
5
5
  "exports": {
6
6
  "./node": {