SolidityExecutionFramework: Fix compileContract() to print Yul errors from the correct source

This commit is contained in:
Kamil Śliwak 2020-06-01 18:17:50 +02:00
parent 0a71e41501
commit 311f025eb5

View File

@ -76,7 +76,7 @@ bytes SolidityExecutionFramework::compileContract(
{
langutil::SourceReferenceFormatter formatter(std::cerr);
for (auto const& error: m_compiler.errors())
for (auto const& error: asmStack.errors())
formatter.printErrorInformation(*error);
BOOST_ERROR("Assembly contract failed. IR: " + m_compiler.yulIROptimized({}));
}