aboutsummaryrefslogtreecommitdiffstats
path: root/CompilerStack.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-28 15:50:53 +0800
committerchriseth <c@ethdev.com>2015-04-22 17:33:25 +0800
commit83cc8dfe008341948306fd38e5405429753cb8d0 (patch)
treef9e8fca70aad6cbea6681f445414bb763a1637cd /CompilerStack.cpp
parenta44bcb6909478543151cac871fdbbc4909ad54aa (diff)
downloaddexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.tar
dexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.tar.gz
dexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.tar.bz2
dexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.tar.lz
dexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.tar.xz
dexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.tar.zst
dexon-solidity-83cc8dfe008341948306fd38e5405429753cb8d0.zip
JSON compiler.
Diffstat (limited to 'CompilerStack.cpp')
-rw-r--r--CompilerStack.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/CompilerStack.cpp b/CompilerStack.cpp
index d6274e2c..a2a17831 100644
--- a/CompilerStack.cpp
+++ b/CompilerStack.cpp
@@ -184,13 +184,16 @@ dev::h256 CompilerStack::getContractCodeHash(string const& _contractName) const
return dev::sha3(getRuntimeBytecode(_contractName));
}
-void CompilerStack::streamAssembly(ostream& _outStream, string const& _contractName, StringMap _sourceCodes, bool _inJsonFormat) const
+Json::Value CompilerStack::streamAssembly(ostream& _outStream, string const& _contractName, StringMap _sourceCodes, bool _inJsonFormat) const
{
Contract const& contract = getContract(_contractName);
if (contract.compiler)
- contract.compiler->streamAssembly(_outStream, _sourceCodes, _inJsonFormat);
+ return contract.compiler->streamAssembly(_outStream, _sourceCodes, _inJsonFormat);
else
+ {
_outStream << "Contract not fully implemented" << endl;
+ return Json::Value();
+ }
}
string const& CompilerStack::getInterface(string const& _contractName) const