Merge pull request #774 from chriseth/srcmapruntime

Bugfix: Correctly use srcmap-runtime.
This commit is contained in:
chriseth 2016-08-01 16:55:18 +02:00 committed by GitHub
commit ec97d574b1

View File

@ -668,7 +668,7 @@ void CommandLineInterface::handleCombinedJSON()
if (requests.count("srcmap-runtime")) if (requests.count("srcmap-runtime"))
{ {
auto map = m_compiler->runtimeSourceMapping(contractName); auto map = m_compiler->runtimeSourceMapping(contractName);
contractData["srcmap"] = map ? *map : ""; contractData["srcmap-runtime"] = map ? *map : "";
} }
if (requests.count("devdoc")) if (requests.count("devdoc"))
contractData["devdoc"] = m_compiler->metadata(contractName, DocumentationType::NatspecDev); contractData["devdoc"] = m_compiler->metadata(contractName, DocumentationType::NatspecDev);