Updated on 2026-08-14
This commit is contained in:
parent
0022091fd7
commit
af8103e00d
3 changed files with 13 additions and 3 deletions
|
|
@ -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) },
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue