From 53b422c64a6e8cee99357262365ffbb0f11b7d5b Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Fri, 31 Oct 2014 11:49:28 +0100 Subject: applied changes from ethereum.js 5538ff725235f30a9afbbedc098fd18dfd9f1293 --- webthreestubclient.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'webthreestubclient.h') diff --git a/webthreestubclient.h b/webthreestubclient.h index 4898e75e..6beee5bb 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -19,6 +19,18 @@ class WebThreeStubClient delete this->client; } + std::string account() throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p = Json::nullValue; + Json::Value result = this->client->CallMethod("account",p); + if (result.isString()) + return result.asString(); + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + + } + Json::Value accounts() throw (jsonrpc::JsonRpcException) { Json::Value p; -- cgit