Minor fix

This commit is contained in:
Rodrigo Q. Saramago 2022-12-05 22:03:47 +01:00 committed by Daniel Kirchner
parent 82c383e7e9
commit 7505813a58

View File

@ -76,7 +76,7 @@ void EVMObjectCompiler::run(Object& _object, bool _optimize)
yulAssert(_object.code, "No code."); yulAssert(_object.code, "No code.");
if (m_eofVersion.has_value()) if (m_eofVersion.has_value())
yulAssert( yulAssert(
_optimize && (m_dialect.evmVersion() == langutil::EVMVersion()), _optimize && (m_dialect.evmVersion() >= langutil::EVMVersion::shanghai()),
"Experimental EOF support is only available for optimized via-IR compilation and the most recent EVM version." "Experimental EOF support is only available for optimized via-IR compilation and the most recent EVM version."
); );
if (_optimize && m_dialect.evmVersion().canOverchargeGasForCall()) if (_optimize && m_dialect.evmVersion().canOverchargeGasForCall())