diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-31 18:49:28 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-10-31 18:49:28 +0800 |
commit | 53b422c64a6e8cee99357262365ffbb0f11b7d5b (patch) | |
tree | 797fe5ce3ac8f362b43298b9448daace39bc3114 | |
parent | 57ef1fbd9b48ed462d644cdd3dd1e353b6356a3e (diff) | |
download | dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.gz dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.bz2 dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.lz dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.xz dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.tar.zst dexon-solidity-53b422c64a6e8cee99357262365ffbb0f11b7d5b.zip |
applied changes from ethereum.js 5538ff725235f30a9afbbedc098fd18dfd9f1293
-rw-r--r-- | webthreestubclient.h | 12 |
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; |