Skip to content

Commit

Permalink
refactor: revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
feri42 committed Jan 13, 2025
1 parent 1b84717 commit 8b53436
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions features/keychain/module/keychain.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,9 @@ export class Keychain {
keyId,
getPrivateHDKeySymbol: this.#getPrivateHDKeySymbol,
})

const privateKey = hdkey.privateKey
let publicKey = null

if (exportPublic) {
publicKey = await this.#getPublicKeyFromHDKey({ hdkey, keyId })
}
Expand All @@ -190,7 +191,7 @@ export class Keychain {
xpub: exportPublic ? xpub : null,
xpriv: exportPrivate ? xpriv : null,
publicKey,
privateKey: exportPrivate ? hdkey.privateKey : null,
privateKey: exportPrivate ? privateKey : null,
}
}

Expand Down

0 comments on commit 8b53436

Please sign in to comment.