commit b8bc9c1141fe6a8d414116fccb714f847439db53
parent 9b281fab10456414c8628a628a1bd2cd2dd0d4d1
Author: lash <dev@holbrook.no>
Date: Thu, 2 Mar 2023 16:29:36 +0000
Revert to async decrypt
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/qrread.js b/js/qrread.js
@@ -227,8 +227,8 @@ async function keyFileHandler(v, passphrase) {
// make sure dom updates are executed before unlock
setTimeout(async () => {
try {
- //settings.wallet = await ethers.Wallet.fromEncryptedJson(v, passphrase, unlockWalletProgress);
- settings.wallet = ethers.Wallet.fromEncryptedJsonSync(v, passphrase);
+ settings.wallet = await ethers.Wallet.fromEncryptedJson(v, passphrase, unlockWalletProgress);
+ //settings.wallet = ethers.Wallet.fromEncryptedJsonSync(v, passphrase);
} catch(e) {
state |= STATE.WALLET_SETTINGS;
const ev = new CustomEvent('uistate', {