Updated on 2026-08-14

This commit is contained in:
Tangem 2024-08-09 15:10:19 +03:00
parent d570dd215f
commit e045a08252
10 changed files with 21 additions and 20 deletions

View file

@ -25,7 +25,7 @@ internal class DefaultCustomTokenRouter : CustomTokenRouter {
val alert = AppDialog.SimpleOkDialogRes(
headerId = R.string.common_warning,
messageId = R.string.alert_manage_tokens_unsupported_curve_message,
args = listOf(blockchain.fullName),
args = listOf(blockchain.getNetworkName()),
)
store.dispatchDialogShow(alert)
}

View file

@ -190,7 +190,7 @@ internal class AddCustomTokenViewModel @Inject constructor(
)
DerivationPathSelectorType.BLOCKCHAIN -> SelectorItem.TitleWithSubtitle(
title = TextReference.Str(derivationPath),
subtitle = TextReference.Str(blockchain.fullName),
subtitle = TextReference.Str(blockchain.getNetworkName()),
blockchain = blockchain,
)
}
@ -204,7 +204,7 @@ internal class AddCustomTokenViewModel @Inject constructor(
)
} else {
SelectorItem.Title(
title = TextReference.Str(blockchain.fullName),
title = TextReference.Str(blockchain.getNetworkName()),
blockchain = blockchain,
)
}
@ -501,7 +501,7 @@ internal class AddCustomTokenViewModel @Inject constructor(
return buildSet {
if (!isSupportedToken && !isContractAddressFieldEmpty) {
add(AddCustomTokenWarning.UnsupportedToken(networkSelectorValue.fullName))
add(AddCustomTokenWarning.UnsupportedToken(networkSelectorValue.getNetworkName()))
}
if (isCustomTokenAlreadyAdded()) {
add(AddCustomTokenWarning.TokenAlreadyAdded)