Updated on 2026-08-14

This commit is contained in:
Tangem 2024-09-02 13:21:06 +03:00
parent 47e284436a
commit a7fbf9b3ee
11 changed files with 60 additions and 29 deletions

View file

@ -52,6 +52,11 @@ object BlockchainUtils {
return blockchain == Blockchain.Binance || blockchain == Blockchain.BinanceTestnet
}
fun isTron(networkId: String): Boolean {
val blockchain = Blockchain.fromId(networkId)
return blockchain == Blockchain.Tron || blockchain == Blockchain.TronTestnet
}
fun isSupportedNetworkId(networkId: String): Boolean {
return Blockchain.fromNetworkId(networkId)?.isSupportedInApp() ?: false
}