diff --git a/src/families/crypto_org/js-buildTransaction.ts b/src/families/crypto_org/js-buildTransaction.ts index 1fcc4d6fc1..cb69fec44b 100644 --- a/src/families/crypto_org/js-buildTransaction.ts +++ b/src/families/crypto_org/js-buildTransaction.ts @@ -32,7 +32,7 @@ export const buildTransaction = async ( publicKey: string ) => { const croSdk = getCroSdk(a.currency.id); - const address = a.freshAddresses[0].address; + const address = a.freshAddress; const { accountNumber, sequence } = await getAccountParams( address, a.currency.id 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() );