From ce398981c81502c527d295484415d6eea58def5c Mon Sep 17 00:00:00 2001 From: ligi Date: Mon, 16 Mar 2020 05:53:41 +0100 Subject: [PATCH] Migrate to KEthereum 0.81.4 --- build.gradle | 4 ++-- src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index fdba50f3..1380b2d8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ buildscript { ext { KOTLIN_VERSION = "1.3.70" - KETHEREUM_VERSION = "0.77.1" + KETHEREUM_VERSION = "0.81.4" } repositories { @@ -32,7 +32,7 @@ dependencies { implementation "com.github.komputing.kethereum:rpc:${KETHEREUM_VERSION}" implementation "com.github.komputing.kethereum:model:${KETHEREUM_VERSION}" - implementation "com.github.komputing.kethereum:functions:${KETHEREUM_VERSION}" + implementation "com.github.komputing.kethereum:erc55:${KETHEREUM_VERSION}" implementation "com.github.komputing.kethereum:crypto_impl_bouncycastle:${KETHEREUM_VERSION}" implementation 'com.beust:klaxon:5.2' diff --git a/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt b/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt index 4227387c..7f8d353d 100644 --- a/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt +++ b/src/main/kotlin/org/ethereum/lists/chains/ChainChecker.kt @@ -2,7 +2,7 @@ package org.ethereum.lists.chains import com.beust.klaxon.JsonObject import com.beust.klaxon.Klaxon -import org.kethereum.functions.isValid +import org.kethereum.erc55.isValid import org.kethereum.model.Address import org.kethereum.rpc.HttpEthereumRPC import java.io.File @@ -82,9 +82,9 @@ fun checkChain(it: File, connectRPC: Boolean) { } else { println("connecting to $it") val ethereumRPC = HttpEthereumRPC(it) - println("Client:" + ethereumRPC.clientVersion()?.result) - println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint()) - println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint()) + println("Client:" + ethereumRPC.clientVersion()) + println("BlockNumber:" + ethereumRPC.blockNumber()) + println("GasPrice:" + ethereumRPC.gasPrice()) } } println()