applied changes from ethereum.js 5538ff725235f30a9afbbedc098fd18dfd9f1293

This commit is contained in:
Marek Kotewicz 2014-10-31 11:49:28 +01:00
parent 57ef1fbd9b
commit 53b422c64a

View File

@ -19,6 +19,18 @@ class WebThreeStubClient
delete this->client; 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 accounts() throw (jsonrpc::JsonRpcException)
{ {
Json::Value p; Json::Value p;