@leofcoin/chain 1.6.1 → 1.6.3
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/{browser-Ei0BXMlu-C0woTcHa.js → browser-Ei0BXMlu-9eQR3AGp.js} +2 -2
- package/exports/browser/chain.js +678 -661
- package/exports/browser/{client-A009z8av-Ssch8Yea.js → client-A009z8av-DavUUkay.js} +4 -4
- package/exports/browser/{_polyfill-node.child_process-CblghArn.js → index-Bz6K16zr.js} +6 -2003
- package/exports/browser/{index-G74WLzL7-BnLRqHoy.js → index-G74WLzL7-d1Vs_wqe.js} +2 -2
- package/exports/browser/{index-YQrIDBUQ-APwDgUUG.js → index-YQrIDBUQ-CbL47K_x.js} +2 -2
- package/exports/browser/{messages-lWRTai7t-DJnHZSdM.js → messages-lWRTai7t-Cs3eU5Cb.js} +2 -2
- package/exports/browser/{node-browser-CeM_F-HL.js → node-browser-CC3grAN3.js} +4 -4
- package/exports/browser/node-browser.js +2 -2
- package/exports/browser/workers/block-worker.js +1 -1
- package/exports/browser/workers/machine-worker.js +348 -349
- package/exports/browser/workers/{worker-CbAak_hM.js → worker-CFrwP8cD.js} +1 -4
- package/exports/chain.js +2 -2
- package/exports/workers/block-worker.js +1 -1
- package/exports/workers/machine-worker.js +348 -349
- package/exports/workers/{worker-CbAak_hM.js → worker-CFrwP8cD.js} +1 -4
- package/package.json +27 -56
- package/exports/browser/_polyfill-node.url-BLK_MhDf.js +0 -1196
|
@@ -10,10 +10,7 @@ function getAugmentedNamespace(n) {
|
|
|
10
10
|
if (typeof f == "function") {
|
|
11
11
|
var a = function a () {
|
|
12
12
|
if (this instanceof a) {
|
|
13
|
-
|
|
14
|
-
args.push.apply(args, arguments);
|
|
15
|
-
var Ctor = Function.bind.apply(f, args);
|
|
16
|
-
return new Ctor();
|
|
13
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
17
14
|
}
|
|
18
15
|
return f.apply(this, arguments);
|
|
19
16
|
};
|
package/exports/chain.js
CHANGED
|
@@ -1249,9 +1249,9 @@ class Chain extends VersionControl {
|
|
|
1249
1249
|
this.#jail = [];
|
|
1250
1250
|
this.#addTransaction = async (message) => {
|
|
1251
1251
|
const transaction = new TransactionMessage(message);
|
|
1252
|
-
await transaction.hash();
|
|
1252
|
+
const hash = await transaction.hash();
|
|
1253
1253
|
// if (await transactionPoolStore.has(hash)) await transactionPoolStore.delete(hash)
|
|
1254
|
-
debug(`added ${
|
|
1254
|
+
debug(`added ${hash}`);
|
|
1255
1255
|
};
|
|
1256
1256
|
// @ts-ignore
|
|
1257
1257
|
return this.#init();
|