mirror of
https://github.com/zhigang1992/xverse-web-extension.git
synced 2026-01-12 09:43:44 +08:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user