mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ethereum.js not minified, serpent compiler, jsonrpc handles compilers exceptions
This commit is contained in:
parent
109f57c75f
commit
7b30c14ded
@ -328,6 +328,19 @@ p.append(param3);
|
||||
|
||||
}
|
||||
|
||||
std::string eth_serpent(const std::string& param1) throw (jsonrpc::JsonRpcException)
|
||||
{
|
||||
Json::Value p;
|
||||
p.append(param1);
|
||||
|
||||
Json::Value result = this->client->CallMethod("eth_serpent",p);
|
||||
if (result.isString())
|
||||
return result.asString();
|
||||
else
|
||||
throw jsonrpc::JsonRpcException(jsonrpc::Errors::ERROR_CLIENT_INVALID_RESPONSE, result.toStyledString());
|
||||
|
||||
}
|
||||
|
||||
bool eth_setCoinbase(const std::string& param1) throw (jsonrpc::JsonRpcException)
|
||||
{
|
||||
Json::Value p;
|
||||
|
Loading…
Reference in New Issue
Block a user