Skip to content

Commit 93c96db

Browse files
committed
fixup! [libevmasm] Add support to import evm assembly json.
1 parent c16bf76 commit 93c96db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

solc/CommandLineInterface.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,8 @@ void CommandLineInterface::handleCombinedJSON()
949949
{
950950
Json::Value& contractData = output[g_strContracts][contractName] = Json::objectValue;
951951

952+
// NOTE: The state checks here are more strict that in Standard JSON. There we allow
953+
// requesting certain outputs even if compilation fails as long as analysis went ok.
952954
if (m_compiler && m_compiler->compilationSuccessful())
953955
{
954956
if (m_options.compiler.combinedJsonRequests->abi)
@@ -1000,7 +1002,8 @@ void CommandLineInterface::handleCombinedJSON()
10001002
}
10011003
}
10021004

1003-
bool needsSourceList = m_options.compiler.combinedJsonRequests->ast ||
1005+
bool needsSourceList =
1006+
m_options.compiler.combinedJsonRequests->ast ||
10041007
m_options.compiler.combinedJsonRequests->srcMap ||
10051008
m_options.compiler.combinedJsonRequests->srcMapRuntime;
10061009
if (needsSourceList)

0 commit comments

Comments
 (0)