From c27c776abb914991c2aadbc640423629faf27d30 Mon Sep 17 00:00:00 2001 From: ligi Date: Fri, 13 Nov 2020 01:34:13 +0100 Subject: [PATCH] Cleanup --- .../kotlin/org/ethereum/lists/chains/ChainChecker.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt b/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt index 7f8d353d..bd30d730 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt @@ -6,7 +6,6 @@ import org.kethereum.erc55.isValid import org.kethereum.model.Address import org.kethereum.rpc.HttpEthereumRPC import java.io.File -import java.math.BigInteger val mandatory_fields = listOf( "name", @@ -94,17 +93,6 @@ fun checkChain(it: File, connectRPC: Boolean) { } } - -fun String.tryBigint() = if (startsWith("0x")) { - try { - BigInteger(removePrefix("0x"), 16) - } catch (e: NumberFormatException) { - null - } -} else { - null -} - private fun getNumber(jsonObject: JsonObject, field: String): Long { return when (val chainId = jsonObject[field]) { is Int -> chainId.toLong()