We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3325a33 commit 8c04c41Copy full SHA for 8c04c41
watcher/src/watchers/SuiWatcher.ts
@@ -89,9 +89,11 @@ export class SuiWatcher extends Watcher {
89
: null;
90
cursor = response.nextCursor;
91
hasNextPage = response.hasNextPage;
92
+ const digestArrayWithDups = response.data.map((e) => e.id.txDigest);
93
+ const digestArray = Array.from(new Set(digestArrayWithDups));
94
const txBlocks = await this.client.requestWithType(
95
'sui_multiGetTransactionBlocks',
- { digests: response.data.map((e) => e.id.txDigest) },
96
+ { digests: digestArray },
97
array(SuiTransactionBlockResponse)
98
);
99
const checkpointByTxDigest = txBlocks.reduce<Record<string, string | undefined>>(
0 commit comments