Merge pull request #907 from secretkeylabs/fix/keystone-xpub/vic

Fix: keystone, add missing xpub to selected account [ENG-6389]
This commit is contained in:
Victor Kirov
2025-02-04 15:12:28 +02:00
committed by GitHub

View File

@@ -36,7 +36,14 @@ export function embellishAccountWithDetails(
}
if (account.accountType === 'ledger' || account.accountType === 'keystone') {
return { ...account, ...getAccountAddressDetails(account, 'native'), btcAddressType: 'native' };
return {
...account,
...getAccountAddressDetails(account, 'native'),
btcAddressType: 'native',
// TODO vic: remove below 2 once we migrate to using Core which returns them in getAccountAddressDetails
btcXpub: account.btcAddresses.native?.xpub,
ordinalsXpub: account.btcAddresses.taproot.xpub,
};
}
return {