contract create and contract call working

This commit is contained in:
Marek Kotewicz 2014-11-11 09:06:35 +01:00
parent af5b12b249
commit 3b2a0063c0

View File

@ -191,7 +191,7 @@ p.append(param3);
}
std::string eth_contractCall(const std::string& param1, const std::string& param2, const Json::Value& param3) throw (jsonrpc::JsonRpcException)
std::string eth_contractCall(const std::string& param1, const int& param2, const Json::Value& param3) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
p.append(param1);
@ -206,11 +206,10 @@ p.append(param3);
}
std::string eth_contractCreate(const std::string& param1, const std::string& param2) throw (jsonrpc::JsonRpcException)
std::string eth_contractCreate(const std::string& param1) throw (jsonrpc::JsonRpcException)
{
Json::Value p;
p.append(param1);
p.append(param2);
Json::Value result = this->client->CallMethod("eth_contractCreate",p);
if (result.isString())