Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
arhtudormorar committed Sep 20, 2024
1 parent e03790e commit b738791
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const getGuardedTransactions = async ({
transactions
});

if (!isGuarded || (isGuarded && allSignedByGuardian)) {
if (!isGuarded || allSignedByGuardian) {
return transactions;
}

Expand Down
20 changes: 10 additions & 10 deletions src/core/providers/ProviderFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ export class ProviderFactory {
fetchAccount(address)
);

await Promise.all(balancePromises).then((balances) => {
balances.forEach((account, index) => {
if (!account) {
return;
}
accountsWithBalance.push({
address: account.address,
balance: account.balance,
index
});
const balances = await Promise.all(balancePromises);

balances.forEach((account, index) => {
if (!account) {
return;
}
accountsWithBalance.push({
address: account.address,
balance: account.balance,
index
});
});

Expand Down

0 comments on commit b738791

Please sign in to comment.