mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make ASTJSONTest an EVMVersionRestrictedTestCase
This commit is contained in:
parent
7a34d34045
commit
e7f5303a39
@ -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 + "\"."));
|
||||
|
@ -35,7 +35,7 @@ class CompilerStack;
|
||||
namespace solidity::frontend::test
|
||||
{
|
||||
|
||||
class ASTJSONTest: public TestCase
|
||||
class ASTJSONTest: public EVMVersionRestrictedTestCase
|
||||
{
|
||||
public:
|
||||
struct TestVariant
|
||||
|
Loading…
Reference in New Issue
Block a user