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 b6f045f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 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,10 @@ const signOperation = ({

// Get the public key
const hwApp = new CryptoOrgApp(transport);
const address = account.freshAddresses[0];
const address = account.freshAddress;
const cointype = isTestNet(account.currency.id) ? "tcro" : "cro";
const { publicKey } = await hwApp.getAddress(
address.derivationPath,
account.freshAddressPath,
cointype,
false
);
Expand All @@ -133,7 +133,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 b6f045f

Please sign in to comment.