aboutsummaryrefslogtreecommitdiffstats
path: root/webthreestubclient.h
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-31 18:49:28 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2014-10-31 18:49:28 +0800
commit53b422c64a6e8cee99357262365ffbb0f11b7d5b (patch)
tree797fe5ce3ac8f362b43298b9448daace39bc3114 /webthreestubclient.h
parent57ef1fbd9b48ed462d644cdd3dd1e353b6356a3e (diff)
downloaddexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.gz
dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.zst
dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.zip
applied changes from ethereum.js 5538ff725235f30a9afbbedc098fd18dfd9f1293
Diffstat (limited to 'webthreestubclient.h')
-rw-r--r--webthreestubclient.h12
1 files changed, 12 insertions, 0 deletions
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;