mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Split out the JSON functionality from assembly.stream()
This commit is contained in:
@@ -401,9 +401,9 @@ Json::Value StandardCompiler::compileInternal(Json::Value const& _input)
|
||||
Json::Value evmData(Json::objectValue);
|
||||
// @TODO: add ir
|
||||
ostringstream tmp;
|
||||
m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), false);
|
||||
m_compilerStack.assemblyStream(tmp, contractName, createSourceList(_input));
|
||||
evmData["assembly"] = tmp.str();
|
||||
evmData["legacyAssembly"] = m_compilerStack.streamAssembly(tmp, contractName, createSourceList(_input), true);
|
||||
evmData["legacyAssembly"] = m_compilerStack.assemblyJSON(contractName, createSourceList(_input));
|
||||
evmData["methodIdentifiers"] = m_compilerStack.methodIdentifiers(contractName);
|
||||
evmData["gasEstimates"] = m_compilerStack.gasEstimates(contractName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user