Updated on 2026-08-14
This commit is contained in:
parent
a079caac11
commit
5516f8645f
3 changed files with 5 additions and 13 deletions
|
|
@ -165,7 +165,7 @@ sealed class NotificationUM(val config: NotificationConfig) {
|
|||
subtitle = resourceReference(id = R.string.send_notification_invalid_reserve_amount_text),
|
||||
)
|
||||
|
||||
data object DestinationMemoRequired : Error(
|
||||
data object DestinationTagRequired : Error(
|
||||
title = resourceReference(id = R.string.send_validation_destination_tag_required_title),
|
||||
subtitle = resourceReference(id = R.string.send_validation_destination_tag_required_description),
|
||||
)
|
||||
|
|
|
|||
|
|
@ -353,9 +353,7 @@ object NotificationsFactory {
|
|||
error = validationError,
|
||||
onReduceClick = onReduceClick,
|
||||
)
|
||||
is BlockchainSdkError.XRP -> addXRPTransactionValidationError(
|
||||
error = validationError,
|
||||
)
|
||||
is BlockchainSdkError.DestinationTagRequired -> addRequireDestinationTagErrorNotification()
|
||||
null -> minAdaValue?.let {
|
||||
add(
|
||||
NotificationUM.Cardano.MinAdaValueCharged(
|
||||
|
|
@ -436,12 +434,6 @@ object NotificationsFactory {
|
|||
}
|
||||
}
|
||||
|
||||
private fun MutableList<NotificationUM>.addXRPTransactionValidationError(error: BlockchainSdkError.XRP) {
|
||||
when (error) {
|
||||
is BlockchainSdkError.XRP.DestinationMemoRequired -> addRequireDestinationFlagErrorNotification()
|
||||
}
|
||||
}
|
||||
|
||||
fun MutableList<NotificationUM>.addRentExemptionNotification(rentWarning: CryptoCurrencyWarning.Rent?) {
|
||||
if (rentWarning == null) return
|
||||
add(NotificationUM.Solana.RentInfo(rentWarning))
|
||||
|
|
@ -512,7 +504,7 @@ object NotificationsFactory {
|
|||
}
|
||||
}
|
||||
|
||||
private fun MutableList<NotificationUM>.addRequireDestinationFlagErrorNotification() {
|
||||
add(NotificationUM.Error.DestinationMemoRequired)
|
||||
private fun MutableList<NotificationUM>.addRequireDestinationTagErrorNotification() {
|
||||
add(NotificationUM.Error.DestinationTagRequired)
|
||||
}
|
||||
}
|
||||
|
|
@ -5,7 +5,7 @@
|
|||
# https://github.com/tangem/tangem-sdk-android/
|
||||
# https://github.com/tangem/vico
|
||||
|
||||
tangemBlockchainSdk = "develop-1074"
|
||||
tangemBlockchainSdk = "develop-1076"
|
||||
#tangemBlockchainSdk = "0.0.1" # Keep it! - used for local builds
|
||||
tangemCardSdk = "develop-475"
|
||||
#tangemCardSdk = "0.0.1" # Keep it! - used for local builds ^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue