Skip to content

Commit

Permalink
chore: add validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasgabrielgsp committed Nov 10, 2023
1 parent 1257010 commit e6962f9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/sysweb3-keyring/src/keyring-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1727,10 +1727,12 @@ export class KeyringManager implements IKeyringManager {
}

// Update xprv
const encryptNewXprv = CryptoJS.AES.encrypt(
decryptedXprv,
this.sessionPassword
).toString();
const encryptNewXprv = isBitcoinBased
? decryptedXprv
: CryptoJS.AES.encrypt(
decryptedXprv,
this.sessionPassword
).toString();

activeAccount.xprv = encryptNewXprv;
}
Expand Down

0 comments on commit e6962f9

Please sign in to comment.