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 Nov 5, 2024
1 parent 55aac4d commit eb73d3d
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 eb73d3d

Please sign in to comment.