mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
applied changes from ethereum.js 5538ff725235f30a9afbbedc098fd18dfd9f1293
This commit is contained in:
parent
57ef1fbd9b
commit
53b422c64a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user