Skip to content

Commit

Permalink
fix: use of appropriate EventABI struct
Browse files Browse the repository at this point in the history
  • Loading branch information
davideaimar committed Feb 27, 2023
1 parent fe16090 commit 7018e9d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 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,8 +238,8 @@ pub fn build_output(
},
None => {
abi.push(
ABIStructure::Error(
ErrorABI {
ABIStructure::Event(
EventABI {
type_: "event".to_string(),
name: format!("Event_{}", event_selector),
inputs: Vec::new(),
Expand Down

0 comments on commit 7018e9d

Please sign in to comment.