diff options
author | Gav Wood <g@ethdev.com> | 2015-02-18 02:35:36 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-02-18 02:35:36 +0800 |
commit | f595e18c5c7e64c311f9c503027693b93be28504 (patch) | |
tree | c5a2baa72b2f88060b9ee71eb5e4161f5e29400a /webthreestubclient.h | |
parent | b0a13f565a41d6fed97c2a6b7fd834a2da8510fd (diff) | |
parent | 3b995e0f96546c0e421c18eeb1da98a129596b5f (diff) | |
download | dexon-solidity-f595e18c5c7e64c311f9c503027693b93be28504.tar.gz dexon-solidity-f595e18c5c7e64c311f9c503027693b93be28504.tar.zst dexon-solidity-f595e18c5c7e64c311f9c503027693b93be28504.zip |
Merge pull request #1070 from debris/shh_getMessages
added shh_getMessages, fixed #899
Diffstat (limited to 'webthreestubclient.h')
-rw-r--r-- | webthreestubclient.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h index 02f5b5e4..93e101bb 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -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_ |