Skip to content

Commit

Permalink
Fix in unlock function to always unlock ledger for current hdPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed May 9, 2022
1 parent 61336b8 commit 14c491a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ class LedgerBridgeKeyring extends EventEmitter {
}

unlock (hdPath) {
if (this.isUnlocked() && !hdPath) {
return Promise.resolve('already unlocked')
}
const path = hdPath ? this._toLedgerPath(hdPath) : this.hdPath
return new Promise((resolve, reject) => {
this._sendMessage({
Expand Down

0 comments on commit 14c491a

Please sign in to comment.