diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-13 19:25:49 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-13 19:26:52 +0800 |
commit | 5c67fd341b99e53d8b80a2db13007ee1a73cabf9 (patch) | |
tree | b4b487d99d455662b510c4fca9b62ea828f25998 /webthreestubclient.h | |
parent | 8e5b6d67cc691ab102fcee85348ad290ebef9cd6 (diff) | |
download | dexon-solidity-5c67fd341b99e53d8b80a2db13007ee1a73cabf9.tar.gz dexon-solidity-5c67fd341b99e53d8b80a2db13007ee1a73cabf9.tar.zst dexon-solidity-5c67fd341b99e53d8b80a2db13007ee1a73cabf9.zip |
removed unnecessary methods from jsonrpc and added contract call tests
Diffstat (limited to 'webthreestubclient.h')
-rw-r--r-- | webthreestubclient.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h index 6d844de8..66c4bef3 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -191,33 +191,6 @@ p.append(param3); } - std::string eth_contractCall(const std::string& param1, const std::string& param2) throw (jsonrpc::JsonRpcException) - { - Json::Value p; - p.append(param1); -p.append(param2); - - Json::Value result = this->client->CallMethod("eth_contractCall",p); - if (result.isString()) - return result.asString(); - else - throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); - - } - - std::string eth_contractCreate(const std::string& param1) throw (jsonrpc::JsonRpcException) - { - Json::Value p; - p.append(param1); - - Json::Value result = this->client->CallMethod("eth_contractCreate",p); - if (result.isString()) - return result.asString(); - else - throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); - - } - double eth_countAt(const std::string& param1) throw (jsonrpc::JsonRpcException) { Json::Value p; |