@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.
- package/exports/browser/{_polyfill-node.url-1q06MepH.js → _polyfill-node.url-Bp9XkJZf.js} +1 -1
- package/exports/browser/{browser-1GyRaZxg-C9SpI6hG.js → browser-Ei0BXMlu-C1_XUL9Y.js} +2 -2
- package/exports/browser/browser-store.js +122 -309
- package/exports/browser/chain.js +38 -14
- package/exports/browser/{client-UOCjJBGl-pbv-pTHd.js → client-A009z8av-DQfd3vOY.js} +5 -5
- package/exports/browser/{index-ub31QSed-EMPr2oeb.js → index-G74WLzL7-Dt2dwaXq.js} +2 -2
- package/exports/browser/{index-K4Kwju30-vS3fNpxy.js → index-YQrIDBUQ-c7011Ab4.js} +2 -2
- package/exports/browser/{messages-guyZfse6-JeAlT5Nb.js → messages-lWRTai7t-ClhClfC1.js} +2 -2
- package/exports/browser/{node-browser-0Ly80awM.js → node-browser-DqIklEKv.js} +624 -622
- package/exports/browser/node-browser.js +2 -2
- package/exports/browser/workers/block-worker.js +1 -1
- package/exports/browser/workers/machine-worker.js +1 -1
- package/exports/chain.js +8 -1
- package/exports/workers/block-worker.js +1 -1
- package/exports/workers/machine-worker.js +1 -1
- package/package.json +1 -1
- /package/exports/browser/{_polyfill-node.child_process-rc1HO9Xs.js → _polyfill-node.child_process-BsjYmFff.js} +0 -0
- /package/exports/browser/{browser-AyxSBUXj-AyxSBUXj.js → browser-AyxSBUXj-pguCHlVu.js} +0 -0
- /package/exports/browser/{password-JCRBtU5A.js → password-oDixGC8h.js} +0 -0
- /package/exports/browser/{qr-scanner-worker.min-RaSiJc_R-RaSiJc_R.js → qr-scanner-worker.min-RaSiJc_R-Dy0qkKA4.js} +0 -0
- /package/exports/browser/workers/{worker-hbo9s9AT.js → worker-CltAyHf1.js} +0 -0
- /package/exports/workers/{worker-hbo9s9AT.js → worker-CltAyHf1.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { N as default } from './node-browser-
|
|
2
|
-
import './_polyfill-node.child_process-
|
|
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, C as ContractMessage, T as TransactionMessage } from './worker-
|
|
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
|
-
|
|
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, C as ContractMessage, T as TransactionMessage } from './worker-
|
|
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
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|