Updated on 2026-08-14

This commit is contained in:
Tangem 2026-04-23 18:33:00 +03:00
parent 72989eab5a
commit 361bd8168b
4 changed files with 74 additions and 3 deletions

View file

@ -24,7 +24,6 @@ class GetDerivedXpubUseCase(
suspend operator fun invoke(userWalletId: UserWalletId, network: Network): String? {
val blockchain = network.toBlockchain()
if (!DynamicAddressesSupportedBlockchains.isSupported(blockchain)) return null
if (!blockchain.isBip44DerivationStyleXPUB()) return null
val walletManager = walletManagersFacade.getOrCreateWalletManager(userWalletId, network) ?: return null
val hdKey = walletManager.wallet.publicKey.derivationType?.hdKey ?: return null