mirror of
https://github.com/Instadapp/chains.git
synced 2024-07-29 22:37:19 +00:00
Migrate to Kethereum 0.76.0
This commit is contained in:
parent
7aaf2a818d
commit
3e3012228d
|
@ -1,7 +1,7 @@
|
||||||
buildscript {
|
buildscript {
|
||||||
ext {
|
ext {
|
||||||
KOTLIN_VERSION = "1.3.41"
|
KOTLIN_VERSION = "1.3.41"
|
||||||
KETHEREUM_VERSION = "0.75.1"
|
KETHEREUM_VERSION = "0.76.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -2,7 +2,7 @@ package org.ethereum.lists.chains
|
||||||
|
|
||||||
import com.beust.klaxon.JsonObject
|
import com.beust.klaxon.JsonObject
|
||||||
import com.beust.klaxon.Klaxon
|
import com.beust.klaxon.Klaxon
|
||||||
import org.kethereum.rpc.EthereumRPC
|
import org.kethereum.rpc.HttpEthereumRPC
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.math.BigInteger
|
import java.math.BigInteger
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ fun checkChain(it: File, connectRPC: Boolean) {
|
||||||
throw(RPCMustBeListOfStrings())
|
throw(RPCMustBeListOfStrings())
|
||||||
} else {
|
} else {
|
||||||
println("connecting to $it")
|
println("connecting to $it")
|
||||||
val ethereumRPC = EthereumRPC(it)
|
val ethereumRPC = HttpEthereumRPC(it)
|
||||||
println("Client:" + ethereumRPC.clientVersion()?.result)
|
println("Client:" + ethereumRPC.clientVersion()?.result)
|
||||||
println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint())
|
println("BlockNumber:" + ethereumRPC.blockNumber()?.result?.tryBigint())
|
||||||
println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint())
|
println("GasPrice:" + ethereumRPC.gasPrice()?.result?.tryBigint())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user