mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
eth_call on block with number
This commit is contained in:
parent
ac96c5bf59
commit
223a102aff
@ -198,10 +198,11 @@ class WebThreeStubClient : public jsonrpc::Client
|
|||||||
else
|
else
|
||||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||||
}
|
}
|
||||||
std::string eth_call(const Json::Value& param1) throw (jsonrpc::JsonRpcException)
|
std::string eth_call(const Json::Value& param1, const std::string& param2) throw (jsonrpc::JsonRpcException)
|
||||||
{
|
{
|
||||||
Json::Value p;
|
Json::Value p;
|
||||||
p.append(param1);
|
p.append(param1);
|
||||||
|
p.append(param2);
|
||||||
Json::Value result = this->CallMethod("eth_call",p);
|
Json::Value result = this->CallMethod("eth_call",p);
|
||||||
if (result.isString())
|
if (result.isString())
|
||||||
return result.asString();
|
return result.asString();
|
||||||
|
Loading…
Reference in New Issue
Block a user