@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.
- package/exports/browser/chain.js +1 -1
- package/exports/chain.js +1 -1
- package/package.json +1 -1
package/exports/browser/chain.js
CHANGED
|
@@ -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
|