Updated on 2026-08-14
This commit is contained in:
parent
47e284436a
commit
a7fbf9b3ee
11 changed files with 60 additions and 29 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue