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: update bytecode matching for coverage #8214

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Jun 20, 2024

Motivation

ref #6875 (comment)

Solution

Update find_by_{deployed,creation}_code to not exit after first diff_score < 0.1, but instead try matching until the minimal diff score is found.

cc @grandizzy this fixes the issue for https://github.com/grandizzy/forge-coverage-bug/tree/master though not sure about other repos

@grandizzy
Copy link
Collaborator

confirming it fixes sparklend issue too 🎉

image

crates/common/src/contracts.rs Show resolved Hide resolved
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