From 12ef273d064fd8719e914c5498e5c837b114b8dc Mon Sep 17 00:00:00 2001 From: Djordje Mijovic Date: Fri, 12 Feb 2021 12:33:49 +0100 Subject: [PATCH] Setting metadata has and version type for semantic tests to be empty. --- test/libsolidity/SemanticTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/libsolidity/SemanticTest.cpp b/test/libsolidity/SemanticTest.cpp index 555ba1804..9f9bbbd16 100644 --- a/test/libsolidity/SemanticTest.cpp +++ b/test/libsolidity/SemanticTest.cpp @@ -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)