mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #774 from chriseth/srcmapruntime
Bugfix: Correctly use srcmap-runtime.
This commit is contained in:
commit
ec97d574b1
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user