Change evmtool eof-test handling of empty code (#7675)

In EOFTest, treat empty code as invalid.

Signed-off-by: Danno Ferrin <danno@numisight.com>
pull/7729/head
Danno Ferrin 2 months ago committed by GitHub
parent 5fd87d61f1
commit 81f9fc9c33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ethereum/evmtool/src/main/java/org/hyperledger/besu/evmtool/EOFTestSubCommand.java

@ -224,7 +224,7 @@ public class EOFTestSubCommand implements Runnable {
return failed(re.getMessage());
}
if (codeBytes.isEmpty()) {
return passed();
return failed("invalid_magic code is zero-length");
}
var layout = EOFLayout.parseEOF(codeBytes);

Loading…
Cancel
Save