Skip to content

Commit

Permalink
Revert error message to 4 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
Danyal Prout committed Dec 9, 2022
1 parent 502cf07 commit 667a107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heimdall/src/decompile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ pub fn decompile(args: DecompilerArgs) {
// resolve custom event signatures
resolved_counter = 0;
for (event_selector, (_, raw_event)) in analyzed_function.events.clone() {
decompilation_progress.set_message(format!("resolving event 0x{}", &event_selector.get(0..64).unwrap().to_string()));
decompilation_progress.set_message(format!("resolving event 0x{}", &event_selector.get(0..8).unwrap().to_string()));
let resolved_event_selectors = resolve_event_signature(&event_selector.get(0..64).unwrap().to_string());

// only continue if we have matches
Expand Down Expand Up @@ -545,4 +545,4 @@ pub fn decompile(args: DecompilerArgs) {

trace.display();
logger.debug(&format!("decompilation completed in {:?}.", now.elapsed()).to_string());
}
}

0 comments on commit 667a107

Please sign in to comment.