Migrate to Kethereum 0.76.0

This commit is contained in:
ligi 2019-08-12 15:21:08 +02:00
parent 7aaf2a818d
commit 3e3012228d
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
buildscript {
ext {
KOTLIN_VERSION = "1.3.41"
KETHEREUM_VERSION = "0.75.1"
KETHEREUM_VERSION = "0.76.0"
}
repositories {

View File

@ -2,7 +2,7 @@ package org.ethereum.lists.chains
import com.beust.klaxon.JsonObject
import com.beust.klaxon.Klaxon
import org.kethereum.rpc.EthereumRPC
import org.kethereum.rpc.HttpEthereumRPC
import java.io.File
import java.math.BigInteger
@ -57,7 +57,7 @@ fun checkChain(it: File, connectRPC: Boolean) {
throw(RPCMustBeListOfStrings())
} else {
println("connecting to $it")
val ethereumRPC = EthereumRPC(it)
val ethereumRPC = HttpEthereumRPC(it)
println("Client:" + ethereumRPC.clientVersion()?.result)
println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint())
println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint())