Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Fix crypto.com address derivation path #1836

Merged
1 commit merged into from
Mar 30, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/families/crypto_org/js-signOperation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,9 @@ const signOperation = ({

// Get the public key
const hwApp = new CryptoOrgApp(transport);
const address = account.freshAddresses[0];
const cointype = isTestNet(account.currency.id) ? "tcro" : "cro";
const { publicKey } = await hwApp.getAddress(
address.derivationPath,
account.freshAddressPath,
cointype,
false
);
Expand All @@ -133,7 +132,7 @@ const signOperation = ({
);
// Sign by device
const { signature } = await hwApp.sign(
address.derivationPath,
account.freshAddressPath,
unsigned.toSignDocument(0).toUint8Array()
);

Expand Down