From e7bf63a6d6260552f50968815a55e30bd504f8fb Mon Sep 17 00:00:00 2001 From: Olusegun Akintayo Date: Mon, 7 Mar 2022 19:09:03 +0400 Subject: [PATCH] Fixes an issue where metamask popup is not loading on eth_accounts (#13840) (first time). Signed-off-by: Akintayo A. Olusegun --- .../lib/rpc-method-middleware/handlers/request-accounts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/lib/rpc-method-middleware/handlers/request-accounts.js b/app/scripts/lib/rpc-method-middleware/handlers/request-accounts.js index d9cb68f4b..5e071e9a2 100644 --- a/app/scripts/lib/rpc-method-middleware/handlers/request-accounts.js +++ b/app/scripts/lib/rpc-method-middleware/handlers/request-accounts.js @@ -72,7 +72,7 @@ async function requestEthereumAccountsHandler( // lock state when they were received. try { locks.add(origin); - await getUnlockPromise(); + await getUnlockPromise(true); res.result = await getAccounts(); end(); } catch (error) {