Skip to content

Commit

Permalink
Fix to support the latest changes in the web wallet to avoid to try t…
Browse files Browse the repository at this point in the history
…o decrypt empty values
  • Loading branch information
sallymoc committed Aug 24, 2024
1 parent c2afb6f commit 90dfbb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/walletImporter/walletImporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@ export class WalletImporter {
const seed = this.getSeed(publicId);
if (seed === undefined) return Promise.reject(null);
try {

if (seed.isOnlyWatch) return "";

const decryptedSeed = await this.decrypt(
this.privateKey!,
this.base64ToArrayBuffer(seed?.encryptedSeed!)
Expand Down

0 comments on commit 90dfbb8

Please sign in to comment.