mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
contract create and contract call working
This commit is contained in:
parent
af5b12b249
commit
3b2a0063c0
@ -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;
|
Json::Value p;
|
||||||
p.append(param1);
|
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;
|
Json::Value p;
|
||||||
p.append(param1);
|
p.append(param1);
|
||||||
p.append(param2);
|
|
||||||
|
|
||||||
Json::Value result = this->client->CallMethod("eth_contractCreate",p);
|
Json::Value result = this->client->CallMethod("eth_contractCreate",p);
|
||||||
if (result.isString())
|
if (result.isString())
|
||||||
|
Loading…
Reference in New Issue
Block a user