Skip to content

Commit

Permalink
feat: re-implement event selector printing (#6607)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bobface authored Dec 15, 2023
1 parent 6fcbbd8 commit 3d6bfdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/chisel/src/executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ fn format_event_definition(event_definition: &pt::EventDefinition) -> Result<Str
alloy_json_abi::Event { name: event_name, inputs, anonymous: event_definition.anonymous };

Ok(format!(
"Type: {}\n├ Name: {}\n Signature: {:?}",
"Type: {}\n├ Name: {}\n Signature: {:?}\n└ Selector: {:?}",
Paint::red("event"),
SolidityHelper::highlight(&format!(
"{}({})",
Expand All @@ -472,6 +472,7 @@ fn format_event_definition(event_definition: &pt::EventDefinition) -> Result<Str
.join(", ")
)),
Paint::cyan(event.signature()),
Paint::cyan(event.selector()),
))
}

Expand Down

0 comments on commit 3d6bfdd

Please sign in to comment.