From 6a9d734fe8dbf4cd4ac14b0c0c43a9f1a46088cc Mon Sep 17 00:00:00 2001 From: John Oshalusi Date: Tue, 5 Nov 2024 09:36:32 +0100 Subject: [PATCH] fix: prevent wrong password entry from logging into the browser (#1511) --- apps/browser-extension-wallet/src/lib/wallet-api-ui.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/browser-extension-wallet/src/lib/wallet-api-ui.ts b/apps/browser-extension-wallet/src/lib/wallet-api-ui.ts index 8be089ff0..229b7a0cf 100644 --- a/apps/browser-extension-wallet/src/lib/wallet-api-ui.ts +++ b/apps/browser-extension-wallet/src/lib/wallet-api-ui.ts @@ -71,9 +71,9 @@ export const withSignTxConfirmation = async (action: () => Promise, passwo throw new TypeError('Invalid state: expected password for in-memory wallet'); } const passphrase = Buffer.from(password, 'utf8'); - req.sign(passphrase); + await req.sign(passphrase); } else { - req.sign(); + await req.sign(); } } catch { // nothing to do here, the error