mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
added storageAt which dumps contract storage
This commit is contained in:
parent
5c67fd341b
commit
385408f038
@ -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)
|
std::string eth_transact(const Json::Value& param1) throw (jsonrpc::JsonRpcException)
|
||||||
{
|
{
|
||||||
Json::Value p;
|
Json::Value p;
|
||||||
|
Loading…
Reference in New Issue
Block a user