Skip to content

Commit

Permalink
Fix hedgehog privateKey access (#3569)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanjeffers authored Jul 28, 2022
1 parent 6725b54 commit 42544c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions libs/src/services/wormhole/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ class Wormhole {
nonce,
deadline
)
const myPrivateKey = this.hedgehog.wallet._privKey
const signedDigest = sign(digest, myPrivateKey)
const { privateKey } = this.hedgehog.getWallet()
const signedDigest = sign(digest, privateKey)
return {
chainId,
deadline,
Expand Down
2 changes: 1 addition & 1 deletion service-commands/src/commands/seed/SeedSession.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class SeedSession {
})
this.cache.addWalletDetails({
entropy: hedgehogEntropyKey,
privKey: this.libs.hedgehog.wallet._privKey.toString('hex')
privKey: this.libs.hedgehog.getWallet().privateKey.toString('hex')
})
this.cache.setActiveUser(userAlias)
console.log(
Expand Down

0 comments on commit 42544c7

Please sign in to comment.