Make ASTJSONTest an EVMVersionRestrictedTestCase

This commit is contained in:
Nikola Matic 2023-05-17 18:07:58 +02:00
parent 7a34d34045
commit e7f5303a39
2 changed files with 3 additions and 2 deletions

View File

@ -181,7 +181,8 @@ void ASTJSONTest::validateTestConfiguration() const
}
}
ASTJSONTest::ASTJSONTest(string const& _filename)
ASTJSONTest::ASTJSONTest(string const& _filename):
EVMVersionRestrictedTestCase(_filename)
{
if (!boost::algorithm::ends_with(_filename, ".sol"))
BOOST_THROW_EXCEPTION(runtime_error("Invalid test contract file name: \"" + _filename + "\"."));

View File

@ -35,7 +35,7 @@ class CompilerStack;
namespace solidity::frontend::test
{
class ASTJSONTest: public TestCase
class ASTJSONTest: public EVMVersionRestrictedTestCase
{
public:
struct TestVariant