Introduce assemblyString

This commit is contained in:
Alex Beregszaszi committed 2017-09-11 15:53:20 +01:00
1 parent 50570c6c79
commit bbfb16cf5c
10 files changed
+27 -24

No files matched your search

+4 -5
View File
@@ -347,15 +347,14 @@ eth::LinkerObject const& CompilerStack::cloneObject(string const& _contractName)
return contract(_contractName).cloneObject;
}
void CompilerStack::assemblyStream(ostream& _outStream, string const& _contractName, StringMap _sourceCodes) const
/// FIXME: cache this string
string CompilerStack::assemblyString(string const& _contractName, StringMap _sourceCodes) const
{
Contract const& currentContract = contract(_contractName);
if (currentContract.compiler)
currentContract.compiler->assemblyStream(_outStream, _sourceCodes);
return currentContract.compiler->assemblyString(_sourceCodes);
else
{
_outStream << "Contract not fully implemented" << endl;
}
return string();
}
/// FIXME: cache the JSON