Skip to content

Commit

Permalink
fix: import wallet password bug
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzjalex committed Apr 20, 2022
1 parent 7295917 commit cab898e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/engine/src/dbs/indexed/indexeddb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1213,6 +1213,11 @@ class IndexedDBApi implements DBAPI {
return;
}

if (addingImported) {
// wallet and account should be updated/added if password check passed.
return;
}

walletStore.put(wallet);
transaction.objectStore(ACCOUNT_STORE_NAME).add(account).onsuccess =
(_aevent) => {
Expand Down

0 comments on commit cab898e

Please sign in to comment.