Minor fix

This commit is contained in:
Rodrigo Q. Saramago 2022-12-05 22:03:47 +01:00
parent 7ce6241a7f
commit e8d6d9a3c3
No known key found for this signature in database
GPG Key ID: 9B36B2525704A359

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())