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

This commit is contained in:
Djordje Mijovic
2021-03-09 21:26:45 +01:00
parent cf59d7fc13
commit 12ef273d06
+6
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)