Skip to content

Commit

Permalink
0.4.47
Browse files Browse the repository at this point in the history
  • Loading branch information
rosmcmahon committed Dec 16, 2021
1 parent c53e43c commit 23ed88b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smartweave",
"version": "0.4.46",
"version": "0.4.47",
"description": "Simple, scalable smart contracts on the Arweave protocol.",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down
8 changes: 5 additions & 3 deletions src/contract-read.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async function fetchTransactions(arweave: Arweave, contractId: string, height: n
let transactions = await getNextPage(arweave, variables);

const txInfos: GQLEdgeInterface[] = transactions.edges.filter(
(tx) => !tx.node.bundledIn || !tx.node.bundledIn?.id || !tx.node.parent || !tx.node.parent?.id
(tx) => !tx.node.bundledIn || !tx.node.bundledIn?.id || !tx.node.parent || !tx.node.parent?.id,
);

while (transactions.pageInfo.hasNextPage) {
Expand All @@ -217,8 +217,10 @@ async function fetchTransactions(arweave: Arweave, contractId: string, height: n

transactions = await getNextPage(arweave, variables);

txInfos.push(...transactions.edges.filter(
(tx) => !tx.node.bundledIn || !tx.node.bundledIn?.id || !tx.node.parent || !tx.node.parent?.id)
txInfos.push(
...transactions.edges.filter(
(tx) => !tx.node.bundledIn || !tx.node.bundledIn?.id || !tx.node.parent || !tx.node.parent?.id,
),
);
}

Expand Down

0 comments on commit 23ed88b

Please sign in to comment.