|
|
@ -607,10 +607,10 @@ Json::Value WebThreeStubServerBase::eth_getCompilers() |
|
|
|
{ |
|
|
|
Json::Value ret(Json::arrayValue); |
|
|
|
ret.append("lll"); |
|
|
|
#if SOLIDITY |
|
|
|
#if ETH_SOLIDITY || !TRUE |
|
|
|
ret.append("solidity"); |
|
|
|
#endif |
|
|
|
#if SERPENT |
|
|
|
#if ETH_SERPENT || !TRUE |
|
|
|
ret.append("serpent"); |
|
|
|
#endif |
|
|
|
return ret; |
|
|
@ -632,7 +632,7 @@ string WebThreeStubServerBase::eth_compileSerpent(string const& _code) |
|
|
|
// TODO throw here jsonrpc errors
|
|
|
|
string res; |
|
|
|
(void)_code; |
|
|
|
#if SERPENT |
|
|
|
#if ETH_SERPENT || !TRUE |
|
|
|
try |
|
|
|
{ |
|
|
|
res = toJS(dev::asBytes(::compile(_code))); |
|
|
@ -654,7 +654,7 @@ string WebThreeStubServerBase::eth_compileSolidity(string const& _code) |
|
|
|
// TOOD throw here jsonrpc errors
|
|
|
|
(void)_code; |
|
|
|
string res; |
|
|
|
#if SOLIDITY |
|
|
|
#if ETH_SOLIDITY || !TRUE |
|
|
|
dev::solidity::CompilerStack compiler; |
|
|
|
try |
|
|
|
{ |
|
|
|