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

Commit

Permalink
fix address
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-nguy committed Mar 29, 2022
1 parent 7574922 commit c8ce2e1
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit c8ce2e1

Please sign in to comment.