Updated on 2026-08-14
This commit is contained in:
parent
4ce635eeaa
commit
e2d014420a
10 changed files with 55 additions and 18 deletions
|
|
@ -2,6 +2,7 @@ package com.tangem.lib.crypto
|
|||
|
||||
import com.tangem.blockchain.blockchains.xrp.XrpAddressService
|
||||
import com.tangem.blockchain.common.Blockchain
|
||||
import com.tangem.blockchainsdk.compatibility.l2BlockchainsList
|
||||
import com.tangem.blockchainsdk.utils.fromNetworkId
|
||||
import com.tangem.blockchainsdk.utils.isSupportedInApp
|
||||
import com.tangem.lib.crypto.converter.XrpTaggedAddressConverter
|
||||
|
|
@ -98,6 +99,11 @@ object BlockchainUtils {
|
|||
)
|
||||
}
|
||||
|
||||
fun isL2Network(networkId: String): Boolean {
|
||||
val blockchain = Blockchain.fromNetworkId(networkId) ?: return false
|
||||
return l2BlockchainsList.contains(blockchain)
|
||||
}
|
||||
|
||||
private fun getNetworkStandardName(blockchain: Blockchain): String {
|
||||
return when (blockchain) {
|
||||
Blockchain.Ethereum, Blockchain.EthereumTestnet -> "ERC20"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue