Skip to content

Commit

Permalink
fix: keyring.getAccounts() returns an array
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesposito committed Sep 24, 2024
1 parent 2e16358 commit 6e55ca9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/util/importAdditionalAccounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ export default async () => {
ethQuery,
);
let i = 0;

// seek out the first zero balance
while (lastBalance !== ZERO_BALANCE && i < MAX) {
lastBalance = await getBalance(
await primaryKeyring.addAccounts(1),
ethQuery,
);
const [newAccount] = await primaryKeyring.addAccounts(1);
lastBalance = await getBalance(newAccount, ethQuery);
i++;
}

Expand Down

0 comments on commit 6e55ca9

Please sign in to comment.