Skip to content

Commit

Permalink
fix: prevent wrong password entry from logging into the browser (#1511)
Browse files Browse the repository at this point in the history
  • Loading branch information
greatertomi authored and mchappell committed Nov 8, 2024
1 parent 1c6f261 commit 6a9d734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/browser-extension-wallet/src/lib/wallet-api-ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ export const withSignTxConfirmation = async <T>(action: () => Promise<T>, 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
Expand Down

0 comments on commit 6a9d734

Please sign in to comment.