diff --git a/common/ui/src/main/java/com/tangem/common/ui/notifications/NotificationsFactory.kt b/common/ui/src/main/java/com/tangem/common/ui/notifications/NotificationsFactory.kt index 1cedf7d5b3..c2ea0c7fe3 100644 --- a/common/ui/src/main/java/com/tangem/common/ui/notifications/NotificationsFactory.kt +++ b/common/ui/src/main/java/com/tangem/common/ui/notifications/NotificationsFactory.kt @@ -72,7 +72,12 @@ object NotificationsFactory { ) is GetFeeError.BlockchainErrors.SuiOneCoinRequired -> add(NotificationUM.Sui.NotEnoughCoinForTokenTransaction) - is GetFeeError.DataError -> when (feeError.cause) { + is GetFeeError.DataError -> when (val cause = feeError.cause) { + is BlockchainSdkError.Kaspa.DustChangeError -> add( + NotificationUM.Error.MinimumAmountError( + amount = cause.minimumAmount.format { crypto(tokenStatus.currency) }, + ), + ) BlockchainSdkError.TransactionDustChangeError -> add( NotificationUM.Error.MinimumAmountError( amount = dustValue.format { crypto(tokenStatus.currency) }, @@ -388,6 +393,11 @@ object NotificationsFactory { rentExemptionAmount = validationError.rentAmount, cryptoCurrency = cryptoCurrency, ) + is BlockchainSdkError.Kaspa.DustChangeError -> add( + NotificationUM.Error.MinimumAmountError( + amount = validationError.minimumAmount.format { crypto(cryptoCurrency) }, + ), + ) is BlockchainSdkError.TransactionDustChangeError -> add( NotificationUM.Error.MinimumAmountError( amount = dustValue.format { crypto(cryptoCurrency) }, diff --git a/domain/account/status/src/test/kotlin/com/tangem/domain/account/status/usecase/GetAccountCurrencyStatusUseCaseTest.kt b/domain/account/status/src/test/kotlin/com/tangem/domain/account/status/usecase/GetAccountCurrencyStatusUseCaseTest.kt index fbea44938c..8c0081e165 100644 --- a/domain/account/status/src/test/kotlin/com/tangem/domain/account/status/usecase/GetAccountCurrencyStatusUseCaseTest.kt +++ b/domain/account/status/src/test/kotlin/com/tangem/domain/account/status/usecase/GetAccountCurrencyStatusUseCaseTest.kt @@ -284,7 +284,7 @@ class GetAccountCurrencyStatusUseCaseTest { coEvery { supplier(supplierParams) } returns flowOf(accountStatusList) // Act - val actual = useCase(userWalletId = userWalletId, currencyId = currency.id, network = null) + val actual = useCase(userWalletId = userWalletId, currencyId = currency.id, network = currency.network) .let(::getEmittedValues) // Assert diff --git a/gradle/tangem_dependencies.toml b/gradle/tangem_dependencies.toml index 5c6e986a05..08ab7327d8 100644 --- a/gradle/tangem_dependencies.toml +++ b/gradle/tangem_dependencies.toml @@ -5,7 +5,7 @@ # https://github.com/tangem/tangem-sdk-android/ # https://github.com/tangem/vico -tangemBlockchainSdk = "releases-5.36-1457" +tangemBlockchainSdk = "releases-5.36-1470" #tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds tangemCardSdk = "releases-5.36-600" #tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^