Skip to content

Commit

Permalink
fix: ledger sign arbitrary
Browse files Browse the repository at this point in the history
  • Loading branch information
shane-moore committed Aug 22, 2023
1 parent c3a79bd commit 36dbb55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export default class LedgerBase
const ledger = await this.ledger.getInstance()
const result = await ledger.signPersonalMessage(
derivationPath,
bufferToHex(Buffer.from(toUtf8(data), 'utf8')),
Buffer.from(toUtf8(data), 'utf8').toString('hex'),
)

const combined = `${result.r}${result.s}${result.v.toString(16)}`
Expand Down

0 comments on commit 36dbb55

Please sign in to comment.