Skip to content

Commit 21269a4

Browse files
committed
Add allEOFVersions to EVMVersion
1 parent c2f89c5 commit 21269a4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

liblangutil/EVMVersion.h

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
#include <libsolutil/Assertions.h>
2525

26+
#include <array>
2627
#include <cstdint>
2728
#include <optional>
2829
#include <string>
@@ -83,6 +84,14 @@ class EVMVersion
8384
};
8485
}
8586

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+
8695
static std::optional<EVMVersion> fromString(std::string const& _version)
8796
{
8897
for (auto const& v: allVersions())

0 commit comments

Comments
 (0)