Updated on 2026-08-14
This commit is contained in:
parent
589805424e
commit
c448a1aebb
8 changed files with 64 additions and 57 deletions
|
|
@ -0,0 +1,20 @@
|
|||
package com.tangem.domain.transaction.usecase
|
||||
|
||||
import com.tangem.domain.models.network.Network
|
||||
import com.tangem.domain.transaction.WalletAddressServiceRepository
|
||||
|
||||
class IsMemoRequiredUseCase(
|
||||
private val walletAddressServiceRepository: WalletAddressServiceRepository,
|
||||
) {
|
||||
|
||||
suspend operator fun invoke(network: Network, destinationAddress: String): Boolean {
|
||||
return try {
|
||||
walletAddressServiceRepository.isMemoRequired(
|
||||
network = network,
|
||||
destinationAddress = destinationAddress,
|
||||
)
|
||||
} catch (_: Throwable) {
|
||||
false
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue