Setting metadata has and version type for semantic tests to be empty.

This commit is contained in:
Djordje Mijovic 2021-02-12 12:33:49 +01:00
parent cf59d7fc13
commit 12ef273d06

View File

@ -114,6 +114,12 @@ SemanticTest::SemanticTest(
parseExpectations(m_reader.stream());
soltestAssert(!m_tests.empty(), "No tests specified in " + _filename);
if (_evmVersion == EVMVersion{})
{
m_compiler.setVersionType(CompilerStack::VersionType::Empty);
m_compiler.setMetadataHash(CompilerStack::MetadataHash::None);
}
}
TestCase::TestResult SemanticTest::run(ostream& _stream, string const& _linePrefix, bool _formatted)