Updated on 2026-08-14
This commit is contained in:
parent
223a558f90
commit
0bbb95db97
10 changed files with 144 additions and 8 deletions
|
|
@ -2,6 +2,7 @@ package com.tangem.domain.wallets.usecase
|
|||
|
||||
import arrow.core.raise.catch
|
||||
import com.tangem.domain.tokens.model.Network
|
||||
import com.tangem.blockchain.common.address.AddressType
|
||||
import com.tangem.domain.walletmanager.WalletManagersFacade
|
||||
import com.tangem.domain.wallets.models.UserWalletId
|
||||
|
||||
|
|
@ -9,8 +10,12 @@ import com.tangem.domain.wallets.models.UserWalletId
|
|||
class GetExploreUrlUseCase(private val walletsManagersFacade: WalletManagersFacade) {
|
||||
|
||||
// FIXME: Handle error
|
||||
suspend operator fun invoke(userWalletId: UserWalletId, network: Network): String {
|
||||
return catch({ walletsManagersFacade.getExploreUrl(userWalletId, network) }) {
|
||||
suspend operator fun invoke(
|
||||
userWalletId: UserWalletId,
|
||||
network: Network,
|
||||
addressType: AddressType = AddressType.Default,
|
||||
): String {
|
||||
return catch({ walletsManagersFacade.getExploreUrl(userWalletId, network, addressType) }) {
|
||||
""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue