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 9007889 commit e465a31Copy full SHA for e465a31
liblangutil/EVMVersion.h
@@ -23,6 +23,7 @@
23
24
#include <libsolutil/Assertions.h>
25
26
+#include <array>
27
#include <cstdint>
28
#include <optional>
29
#include <string>
@@ -83,6 +84,14 @@ class EVMVersion
83
84
};
85
}
86
87
+ static auto constexpr allEOFVersions()
88
+ {
89
+ return std::array{
90
+ std::optional<uint8_t>(),
91
+ std::make_optional<uint8_t>(1)
92
+ };
93
+ }
94
+
95
static std::optional<EVMVersion> fromString(std::string const& _version)
96
{
97
for (auto const& v: allVersions())
0 commit comments