Skip to content

Commit

Permalink
feat: add waitForAllTransactionsToConfirm method
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Sep 9, 2022
1 parent 6b70e92 commit b549042
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/datalayer/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ const hasUnconfirmedTransactions = async () => {
const data = JSON.parse(response);

if (data.success) {
console.log(
`Pending confirmations: ${
data.transactions.filter((transaction) => !transaction.confirmed).length
}`,
);
return data.transactions.some((transaction) => !transaction.confirmed);
}

Expand Down

0 comments on commit b549042

Please sign in to comment.