Migrate to KEthereum 0.81.4

This commit is contained in:
ligi 2020-03-16 05:53:41 +01:00
parent ed38dc775a
commit ce398981c8
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D
2 changed files with 6 additions and 6 deletions

View File

@ -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'

View File

@ -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()