mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added shh_getMessages, fixed #899
This commit is contained in:
parent
600b38224e
commit
3b995e0f96
@ -535,6 +535,16 @@ class WebThreeStubClient : public jsonrpc::Client
|
||||
else
|
||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||
}
|
||||
Json::Value shh_getMessages(int param1) throw (jsonrpc::JsonRpcException)
|
||||
{
|
||||
Json::Value p;
|
||||
p.append(param1);
|
||||
Json::Value result = this->CallMethod("shh_getMessages",p);
|
||||
if (result.isArray())
|
||||
return result;
|
||||
else
|
||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||
}
|
||||
};
|
||||
|
||||
#endif //JSONRPC_CPP_STUB_WEBTHREESTUBCLIENT_H_
|
||||
|
Loading…
Reference in New Issue
Block a user