Skip to content

Commit

Permalink
Change evmtool eof-test handling of empty code (#7675)
Browse files Browse the repository at this point in the history
In EOFTest, treat empty code as invalid.

Signed-off-by: Danno Ferrin <[email protected]>
  • Loading branch information
shemnon authored Oct 4, 2024
1 parent 5fd87d6 commit 81f9fc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ public TestResult considerCode(final String hexCode) {
return failed(re.getMessage());
}
if (codeBytes.isEmpty()) {
return passed();
return failed("invalid_magic code is zero-length");
}

var layout = EOFLayout.parseEOF(codeBytes);
Expand Down

0 comments on commit 81f9fc9

Please sign in to comment.