Updated on 2026-08-14

This commit is contained in:
Tangem 2026-06-19 17:50:54 +03:00
parent 15d8fde8ad
commit e68d8b0eed

View file

@ -254,8 +254,6 @@ internal class GetWalletNotificationsFactory @Inject constructor(
addCloreMigrationNotification(userWallet, flattenCurrencies, clickIntents)
addNoAccountWarning(cryptoCurrencyStatus = flattenCurrencies.firstOrNull())
addIf(
element = WalletNotificationUM.NumberOfSignedHashesIncorrect(
onCloseClick = clickIntents::onCloseAlreadySignedHashesWarningClick,
@ -293,19 +291,6 @@ internal class GetWalletNotificationsFactory @Inject constructor(
notification?.let(::add)
}
private fun MutableList<WalletNotificationUM>.addNoAccountWarning(cryptoCurrencyStatus: CryptoCurrencyStatus?) {
val noAccountStatus = cryptoCurrencyStatus?.value as? CryptoCurrencyStatus.NoAccount
if (noAccountStatus != null) {
add(
element = WalletNotificationUM.NoAccount(
network = cryptoCurrencyStatus.currency.name,
amount = noAccountStatus.amountToCreateAccount.toString(),
symbol = cryptoCurrencyStatus.currency.symbol,
),
)
}
}
private fun MutableList<WalletNotificationUM>.addCloreMigrationNotification(
userWallet: UserWallet,
flattenCurrencies: List<CryptoCurrencyStatus>,