Update test/libsolidity/SolidityExecutionFramework.h

Co-authored-by: Alex Beregszaszi <alex@rtfs.hu>
This commit is contained in:
r0qs 2022-12-06 20:09:58 +01:00 committed by Daniel Kirchner
parent 8c774b20d0
commit 09a720b8b4

View File

@ -65,7 +65,7 @@ public:
if (bytecode.size() > 0) if (bytecode.size() > 0)
{ {
if (bytecode[0] == uint8_t(0xef)) // is EOF if (bytecode[0] == uint8_t(0xef) && bytecode[1] == uint8_t(00)) // is EOF
{ {
const auto firstSectionOffset = 3; // magic + version const auto firstSectionOffset = 3; // magic + version
bool stop = false; bool stop = false;