We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94bfae1 commit 9446ea1Copy full SHA for 9446ea1
liblangutil/EVMVersion.cpp
@@ -19,9 +19,8 @@
19
* EVM versioning.
20
*/
21
22
-#include <libevmasm/Instruction.h>
23
#include <liblangutil/EVMVersion.h>
24
-
+#include <libevmasm/Instruction.h>
25
26
using namespace solidity;
27
using namespace solidity::evmasm;
@@ -30,7 +29,7 @@ using namespace solidity::langutil;
30
29
bool EVMVersion::hasOpcode(Instruction _opcode, std::optional<uint8_t> _eofVersion) const
31
{
32
// EOF version can be only defined since prague
33
- assert(!_eofVersion.has_value() || static_cast<int>(m_version) >= static_cast<int>(prague().m_version));
+ assert(!_eofVersion.has_value() || *this >= prague());
34
35
switch (_opcode)
36
0 commit comments