Skip to content

Commit 3c6df92

Browse files
committed
Minor change to fix hardware wallet claim signing
1 parent 5e4cdcd commit 3c6df92

File tree

1 file changed

+2
-2
lines changed
  • libs/hardwareWallet/ledger/ledgerLiskAppIPCChannel/serverLedgerHWCommunication

1 file changed

+2
-2
lines changed

libs/hardwareWallet/ledger/ledgerLiskAppIPCChannel/serverLedgerHWCommunication/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ export async function getSignedRawMessage({ devicePath, accountIndex, unsignedMe
9696
transport = await TransportNodeHid.open(devicePath);
9797
const liskLedger = new LiskApp(transport);
9898
const ledgerAccount = getLedgerAccount(accountIndex);
99-
const message = isHexString(unsignedMessage)
100-
? Buffer.from(unsignedMessage, 'hex')
99+
const message = isHexString(unsignedMessage.substring(2))
100+
? Buffer.from(unsignedMessage.substring(2), 'hex')
101101
: Buffer.from(unsignedMessage);
102102
const response = await liskLedger.claimMessage(ledgerAccount.derivePath(), message);
103103
await transport?.close();

0 commit comments

Comments
 (0)