isoltest: Fix gas tests always being enforced regardless of evm version

This commit is contained in:
Kamil Śliwak
2021-10-27 18:56:45 +02:00
parent 7ebf71f315
commit eb2425bd7c
+2 -1
View File
@@ -60,7 +60,6 @@ IsolTestOptions::IsolTestOptions():
CommonOptions(description)
{
enforceViaYul = true;
enforceGasTest = (evmVersion() == langutil::EVMVersion{});
}
void IsolTestOptions::addOptions()
@@ -84,6 +83,8 @@ bool IsolTestOptions::parse(int _argc, char const* const* _argv)
return false;
}
enforceGasTest = enforceGasTest || (evmVersion() == langutil::EVMVersion{});
return res;
}