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

perf: new-type TargetedContracts #8180

Merged
merged 3 commits into from
Jun 18, 2024
Merged

Conversation

DaniPopes
Copy link
Member

Move some methods to a TargetedContracts new-type to be able to borrow from it nicely

To avoid collecting fuzzed_functions I re-added proptest Selector in invariant_strat, should still be OK, PTAL @grandizzy

@DaniPopes DaniPopes requested a review from grandizzy June 17, 2024 15:34
@DaniPopes DaniPopes requested review from Evalir and mattsse as code owners June 17, 2024 15:34
@DaniPopes DaniPopes force-pushed the dani/name-targeted-contracts branch from 979215c to 25d07df Compare June 17, 2024 15:42
@DaniPopes DaniPopes force-pushed the dani/name-targeted-contracts branch from 25d07df to 9d7d2ed Compare June 17, 2024 15:42
Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm

pending @grandizzy

@grandizzy grandizzy force-pushed the dani/name-targeted-contracts branch from 7c4b6cf to ff32894 Compare June 18, 2024 07:23
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

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

looks great, I pushed a commit to fix seed test. with the newly introduced TargetedContract we can now easily support #4352 by adding an add_excluded_selectors function that would push to pub excluded_functions: Vec<Function>, which will be removed when calling abi_fuzzed_functions, going to make a PR for such

@DaniPopes DaniPopes merged commit 9e271d0 into master Jun 18, 2024
19 checks passed
@DaniPopes DaniPopes deleted the dani/name-targeted-contracts branch June 18, 2024 07:38
klkvr pushed a commit to klkvr/foundry that referenced this pull request Jun 19, 2024
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