Skip to content

fix(forge): fuzz show with ambiguous contract names#15566

Merged
mablr merged 1 commit into
masterfrom
mablr/fuzz_show_ambiguous_contract_names
Jul 3, 2026
Merged

fix(forge): fuzz show with ambiguous contract names#15566
mablr merged 1 commit into
masterfrom
mablr/fuzz_show_ambiguous_contract_names

Conversation

@mablr

@mablr mablr commented Jul 3, 2026

Copy link
Copy Markdown
Member

Fixes forge fuzz show so it does not invent a contract name when a corpus entry's calldata can decode against the same function signature in multiple artifacts.

Instead of printing a misleading Contract.function(...), ambiguous entries now show the function call without a contract prefix and include the candidate contract names. JSON output mirrors that with contract: null and ambiguous_contracts.

Follow-up to #15227.

@mablr mablr marked this pull request as ready for review July 3, 2026 17:01

@mattsse mattsse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mablr mablr enabled auto-merge (squash) July 3, 2026 19:07
@mablr mablr merged commit 464e9e8 into master Jul 3, 2026
19 of 20 checks passed
@mablr mablr deleted the mablr/fuzz_show_ambiguous_contract_names branch July 3, 2026 21:25
@github-project-automation github-project-automation Bot moved this to Done in Foundry Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants