From b6f045f40707f2d2233270144a2e944835cbc647 Mon Sep 17 00:00:00 2001 From: Thomas Nguy Date: Tue, 29 Mar 2022 16:34:50 +0900 Subject: [PATCH] fix address --- src/families/crypto_org/js-signOperation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/families/crypto_org/js-signOperation.ts b/src/families/crypto_org/js-signOperation.ts index af6e24744d..a893f944c4 100644 --- a/src/families/crypto_org/js-signOperation.ts +++ b/src/families/crypto_org/js-signOperation.ts @@ -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 ); @@ -133,7 +133,7 @@ const signOperation = ({ ); // Sign by device const { signature } = await hwApp.sign( - address.derivationPath, + account.freshAddressPath, unsigned.toSignDocument(0).toUint8Array() );