diff options
author | Christian <c@ethdev.com> | 2015-01-28 15:50:53 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-04-22 17:33:25 +0800 |
commit | 83cc8dfe008341948306fd38e5405429753cb8d0 (patch) | |
tree | f9e8fca70aad6cbea6681f445414bb763a1637cd /CompilerStack.cpp | |
parent | a44bcb6909478543151cac871fdbbc4909ad54aa (diff) | |
download | dexon-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.cpp | 7 |
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 |