@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.
@@ -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
- var args = [null];
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 ${transaction}`);
1254
+ debug(`added ${hash}`);
1255
1255
  };
1256
1256
  // @ts-ignore
1257
1257
  return this.#init();
@@ -1,4 +1,4 @@
1
- import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-CbAak_hM.js';
1
+ import { E as EasyWorker, B as BigNumber, a as BlockMessage } from './worker-CFrwP8cD.js';
2
2
 
3
3
  const worker = new EasyWorker();
4
4