diff options
author | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-14 01:29:01 +0800 |
---|---|---|
committer | Marek Kotewicz <marek.kotewicz@gmail.com> | 2014-11-14 01:29:01 +0800 |
commit | 385408f0386d9b1f99ad37f288a72f6ab612f2fe (patch) | |
tree | 5819e409d0d6493b026e6c3ee353bc3ea8832ae5 /webthreestubclient.h | |
parent | 5c67fd341b99e53d8b80a2db13007ee1a73cabf9 (diff) | |
download | dexon-solidity-385408f0386d9b1f99ad37f288a72f6ab612f2fe.tar.gz dexon-solidity-385408f0386d9b1f99ad37f288a72f6ab612f2fe.tar.zst dexon-solidity-385408f0386d9b1f99ad37f288a72f6ab612f2fe.zip |
added storageAt which dumps contract storage
Diffstat (limited to 'webthreestubclient.h')
-rw-r--r-- | webthreestubclient.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/webthreestubclient.h b/webthreestubclient.h index 66c4bef3..2636d172 100644 --- a/webthreestubclient.h +++ b/webthreestubclient.h @@ -407,6 +407,19 @@ p.append(param2); } + Json::Value eth_storageAt(const std::string& param1) throw (jsonrpc::JsonRpcException) + { + Json::Value p; + p.append(param1); + + Json::Value result = this->client->CallMethod("eth_storageAt",p); + if (result.isObject()) + return result; + else + throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString()); + + } + std::string eth_transact(const Json::Value& param1) throw (jsonrpc::JsonRpcException) { Json::Value p; |