Updated on 2026-08-14
This commit is contained in:
parent
6234d0eaa4
commit
165a493496
2 changed files with 3 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ package com.tangem.domain.common.form
|
|||
|
||||
import com.tangem.blockchain.blockchains.ethereum.EthereumAddressService
|
||||
import com.tangem.blockchain.blockchains.solana.SolanaAddressService
|
||||
import com.tangem.blockchain.blockchains.tron.TronAddressService
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.blockchain.common.address.AddressService
|
||||
import com.tangem.common.Validator
|
||||
|
|
@ -51,6 +52,7 @@ class TokenContractAddressValidator : CustomTokenValidator<String>() {
|
|||
Blockchain.Unknown -> successAddressValidator
|
||||
Blockchain.Binance, Blockchain.BinanceTestnet -> successAddressValidator
|
||||
Blockchain.Solana, Blockchain.SolanaTestnet -> SolanaAddressService()
|
||||
Blockchain.Tron, Blockchain.TronTestnet -> TronAddressService()
|
||||
else -> {
|
||||
if (blockchain.isEvm()) {
|
||||
EthereumAddressService()
|
||||
|
|
|
|||
|
|
@ -177,6 +177,7 @@ data class AddCustomTokenState(
|
|||
val additionalBlockchains = listOf(
|
||||
Blockchain.Binance, Blockchain.BinanceTestnet,
|
||||
Blockchain.Solana, Blockchain.SolanaTestnet,
|
||||
Blockchain.Tron, Blockchain.TronTestnet,
|
||||
)
|
||||
|
||||
val supportedByCard = when (type) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue