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: get code from scope to report constructor coverage correctly #412

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

0xalpharush
Copy link
Contributor

@0xalpharush 0xalpharush commented Jul 24, 2024

fixes the issue of the constructor not showing as covered in crytic/echidna#1296. For newly deployed contracts, we can't use the stateDB to get the code as they haven't been entered and will return empty code.

@anishnaik anishnaik marked this pull request as ready for review July 24, 2024 19:11
@anishnaik anishnaik requested a review from Xenomega as a code owner July 24, 2024 19:11
@anishnaik anishnaik merged commit b4d4c56 into master Jul 24, 2024
12 checks passed
@anishnaik anishnaik deleted the fix/constructor-coverage branch July 24, 2024 19:13
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