Skip to content

Commit

Permalink
devop: wait for account init
Browse files Browse the repository at this point in the history
  • Loading branch information
kvhnuke committed Aug 20, 2024
1 parent bdb28ee commit c73ea31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/extension/src/libs/background/internal/unlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ const unlock = (
const initNewAccounts = (message.params[1] as boolean) ?? false;
return keyring
.unlock(password)
.then(() => {
.then(async () => {
if (initNewAccounts) {
initAccounts(keyring);
await initAccounts(keyring);
}
return {
result: JSON.stringify(true),
Expand Down

1 comment on commit c73ea31

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.