From c73ea31eb3cbbecf4c61bbc520e0e024d743541d Mon Sep 17 00:00:00 2001 From: kvhnuke <10602065+kvhnuke@users.noreply.github.com> Date: Mon, 19 Aug 2024 17:45:50 -0700 Subject: [PATCH] devop: wait for account init --- packages/extension/src/libs/background/internal/unlock.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/extension/src/libs/background/internal/unlock.ts b/packages/extension/src/libs/background/internal/unlock.ts index 43e635fdc..2ab5b4183 100644 --- a/packages/extension/src/libs/background/internal/unlock.ts +++ b/packages/extension/src/libs/background/internal/unlock.ts @@ -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),