Skip to content

Commit

Permalink
feat: remove publicKeys from memory on removeAllSeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Apr 4, 2024
1 parent 5c3bf16 commit d62489d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions features/keychain/module/memoized-keychain.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ class MemoizedKeychain extends Keychain {
await super.clear()
await this.#storage.delete(CACHE_KEY)
}

removeAllSeeds = () => {
super.removeAllSeeds()
this.#publicKeys = Object.create(null)
}
}

const memoizedKeychainDefinition = {
Expand Down

0 comments on commit d62489d

Please sign in to comment.