Skip to content

Commit

Permalink
Merge pull request #73 from davideaimar/main
Browse files Browse the repository at this point in the history
Output full event signatures on unresolved ABI
  • Loading branch information
Jon-Becker authored Mar 16, 2023
2 parents 23c8956 + 7018e9d commit 28554ed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions heimdall/src/decompile/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ pub fn build_output(
}

abi.push(
ABIStructure::Error(
ErrorABI {
ABIStructure::Event(
EventABI {
type_: "event".to_string(),
name: resolved_event.name.clone(),
inputs: inputs,
Expand All @@ -238,10 +238,10 @@ pub fn build_output(
},
None => {
abi.push(
ABIStructure::Error(
ErrorABI {
ABIStructure::Event(
EventABI {
type_: "event".to_string(),
name: format!("Event_{}", event_selector.get(0..8).unwrap()),
name: format!("Event_{}", event_selector),
inputs: Vec::new(),
}
)
Expand Down

0 comments on commit 28554ed

Please sign in to comment.