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

Fix testAllContracts behavior #253

Merged
merged 3 commits into from
Nov 8, 2023
Merged

Conversation

anishnaik
Copy link
Collaborator

@anishnaik anishnaik commented Nov 8, 2023

Currently, testAllContracts will try to fuzz test dynamically deployed contracts (e.g. a = new Contract()). This is a deviation from how echidna works and also complicates the fuzzing processes (also slows it down a lot for complex systems).

This PR aims to prevent this by tracking dynamic deployments in the test chain deployments tracer and ensuring that the fuzzer worker does not add the contract to its working set if testAllContracts is false and the contract is a dynamic deployment.

Additionally, stopOnFailedContractMatching is now defaulted to false to improve UX - this is an advanced feature that you should toggle on-purpose.

This PR closes the following:
#250
#244

@anishnaik anishnaik merged commit 0c4d0a8 into master Nov 8, 2023
9 checks passed
@anishnaik anishnaik deleted the dev/fix-test-all-contracts branch November 8, 2023 19:07
damilolaedwards added a commit that referenced this pull request Dec 28, 2023
Leeyah-123 pushed a commit to Leeyah-123/medusa that referenced this pull request Jun 4, 2024
s4nsec pushed a commit that referenced this pull request Jul 9, 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.

2 participants