Skip to content

Commit

Permalink
self review
Browse files Browse the repository at this point in the history
  • Loading branch information
claireolmstead committed Jan 16, 2024
1 parent 96cc165 commit 0cc9678
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/polkadotApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,9 @@ export async function loadAccounts(
let foundProviderAccounts: AccountMap | MetaMap = {};
for (let index in Object.keys(foundAccounts)) {
const account = Object.values(foundAccounts)[index];
const msaInfo = await getMsaInfo(apiPromise, account.address);
if (msaInfo.isProvider) {
foundProviderAccounts[account.address] = account;
}
const { isProvider } = await getMsaInfo(apiPromise, account.address);
if (isProvider) foundProviderAccounts[account.address] = account;
}
console.log('FOUND PROVIDER ACCOUNTS', foundProviderAccounts);
storeProviderAccounts.update((val) => (val = foundProviderAccounts));
}
}
Expand Down

0 comments on commit 0cc9678

Please sign in to comment.