@leofcoin/chain 1.7.4 → 1.7.6

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.
@@ -4418,7 +4418,7 @@ class State extends Contract {
4418
4418
  response: { blocks: this.#blocks.map((block) => block.hash) }
4419
4419
  });
4420
4420
  };
4421
- this.#loadBlockTransactions = (transactions) => Promise.all(transactions.map((transaction) => new TransactionMessage(transaction)));
4421
+ this.#loadBlockTransactions = (transactions) => Promise.all(transactions.map(async (transaction) => new TransactionMessage(await peernet.get(transaction))));
4422
4422
  this.#getLastTransactions = async () => {
4423
4423
  let lastTransactions = (await Promise.all((await this.blocks)
4424
4424
  // @ts-ignore
package/exports/chain.js CHANGED
@@ -785,7 +785,7 @@ class State extends Contract {
785
785
  response: { blocks: this.#blocks.map((block) => block.hash) }
786
786
  });
787
787
  };
788
- this.#loadBlockTransactions = (transactions) => Promise.all(transactions.map((transaction) => new TransactionMessage(transaction)));
788
+ this.#loadBlockTransactions = (transactions) => Promise.all(transactions.map(async (transaction) => new TransactionMessage(await peernet.get(transaction))));
789
789
  this.#getLastTransactions = async () => {
790
790
  let lastTransactions = (await Promise.all((await this.blocks)
791
791
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/chain",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "description": "Official javascript implementation",
5
5
  "private": false,
6
6
  "exports": {