From 3d716cb5f0369117674ff25608a037bfe9015bfc Mon Sep 17 00:00:00 2001 From: Thomas Nguy <81727899+thomas-nguy@users.noreply.github.com> Date: Wed, 30 Mar 2022 16:07:36 +0900 Subject: [PATCH] LIVE-1743 Fix crypto.com address derivation path (#1836) --- src/families/crypto_org/js-signOperation.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/families/crypto_org/js-signOperation.ts b/src/families/crypto_org/js-signOperation.ts index af6e24744d..63b44976b8 100644 --- a/src/families/crypto_org/js-signOperation.ts +++ b/src/families/crypto_org/js-signOperation.ts @@ -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 ); @@ -133,7 +132,7 @@ const signOperation = ({ ); // Sign by device const { signature } = await hwApp.sign( - address.derivationPath, + account.freshAddressPath, unsigned.toSignDocument(0).toUint8Array() );