Skip to content

Commit

Permalink
await specif txs in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
45930 committed Aug 2, 2024
1 parent aab8760 commit 01cae16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/examples/zkapps/reducer/run-live.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,12 @@ const txPromises = [];
for (let i = 0; i < txs.length; i++) {
txPromises.push(txs[i].tx.sign([txs[i].privateKey]).send());
}
await Promise.all(txPromises);
await txPromises[0].wait();
await txPromises[1].wait();
toc();

tic('waiting');
await new Promise((_r) => setTimeout(_r, 20_000));
await new Promise((_r) => setTimeout(_r, 60_000));
toc();

toc();
Expand Down

0 comments on commit 01cae16

Please sign in to comment.