Updated on 2026-08-14

This commit is contained in:
Tangem 2024-03-15 13:30:57 +05:00
parent c1af0daa09
commit 39e8abe1bb
18 changed files with 208 additions and 14 deletions

View file

@ -26,4 +26,10 @@ object BlockchainUtils {
null
}
}
/** If current [networkId] is Bitcoin */
fun isBitcoin(networkId: String): Boolean {
val blockchain = Blockchain.fromId(networkId)
return blockchain == Blockchain.Bitcoin || blockchain == Blockchain.BitcoinTestnet
}
}