Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ligi committed May 20, 2019
1 parent 72ed00a commit fd56116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/src/main/kotlin/org/kethereum/rpc/EthereumRPC.kt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class EthereumRPC(val baseURL: String, private val okhttp: OkHttpClient = OkHttp

fun getCode(address: String, block: String) = stringCall("eth_getCode", "\"$address\",\"$block\"")

fun estimateGas(transaction: Transaction, block: String = "latest") = stringCall("eth_estimateGas", "${transaction.toJSON()},\"$block\"")
fun estimateGas(transaction: Transaction) = stringCall("eth_estimateGas", transaction.toJSON())

fun getBalance(address: Address, block: String = "latest") = stringCall("eth_getBalance", "\"${address.hex}\",\"$block\"")

Expand Down

0 comments on commit fd56116

Please sign in to comment.