Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
merendamattia committed Nov 3, 2024
1 parent 8f84275 commit c0e4181
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/it/unipr/EVMLiSA.java
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,12 @@ public void go(String[] args) throws Exception {
} else {
bytecode = new String(Files.readAllBytes(Paths.get(filepath)));
}
jsonOptions.put("bytecode", bytecode);
if (useCreationCode)
jsonOptions.put("bytecode", bytecode);
else if (bytecode != null)
jsonOptions.put("bytecode", bytecode.substring(0, bytecode.indexOf("fe"))); // runtime
// code
// case
EVMFrontend.opcodesFromBytecode(bytecode, BYTECODE_FULLPATH);

Program program = EVMFrontend.generateCfgFromFile(BYTECODE_FULLPATH);
Expand Down

0 comments on commit c0e4181

Please sign in to comment.