Scanner requires only the SourcesSet state

This commit is contained in:
Alex Beregszaszi 2017-05-24 22:45:10 +01:00
parent af2d2499c1
commit 8c3ec16132

View File

@ -507,7 +507,7 @@ string const& CompilerStack::onChainMetadata(string const& _contractName) const
Scanner const& CompilerStack::scanner(string const& _sourceName) const
{
if (m_stackState < ParsingSuccessful)
if (m_stackState < SourcesSet)
BOOST_THROW_EXCEPTION(CompilerError() << errinfo_comment("Parsing was not successful."));
return *source(_sourceName).scanner;