Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: re-implement event selector printing #6607

Merged
merged 1 commit into from
Dec 15, 2023
Merged

feat: re-implement event selector printing #6607

merged 1 commit into from
Dec 15, 2023

Conversation

Bobface
Copy link
Contributor

@Bobface Bobface commented Dec 15, 2023

Motivation

#4455 implemented the printing of event selectors (the hash of the event signature, similar to function selectors). During the migration to Alloy, this seems to have been accidentally removed / replaced.

Solution

This PR re-implements the printing of event signatures.

Example

See Selector in the output below.

Welcome to Chisel! Type `!help` to show available commands.
➜ event SomeEvent(address addr);
➜ SomeEvent
Type: event
├ Name: SomeEvent(address addr)
├ Signature: "SomeEvent(address)"
└ Selector: 0x62e1088ac332ffa611ac64bd5a2aef2c27de42d3c61c686ec5c53753c35c7f68

@Evalir Evalir merged commit 3d6bfdd into foundry-rs:master Dec 15, 2023
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants