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: debugger doesn't work with external libraries #7504

Merged
merged 6 commits into from
Apr 2, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Mar 26, 2024

Motivation

Closes #7038

Solution

Rewrite Linker a bit to use CompactContractBytecodeCow as there is actually no need for linker to own artifacts in most of the cases

Changes test runner flow to keep library addresses used for the test run and link contracts before running the debugger.

.results
.iter()
.find(|(_, r)| !r.test_results.is_empty())
.map(|(_, r)| (r, r.test_results.values().next().unwrap()))
Copy link
Member

Choose a reason for hiding this comment

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

is this unwrap safe?

Copy link
Member Author

@klkvr klkvr Mar 27, 2024

Choose a reason for hiding this comment

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

we've just filtered by is_empty above, so I believe yes

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.

great!

@mattsse mattsse merged commit 85cb9fb into master Apr 2, 2024
20 checks passed
@mattsse mattsse deleted the klkvr/update-test-libs branch April 2, 2024 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants