Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Closes #3453
Closes #1963
Solution
This PR includes general refactor of code using
ContractsByArtifacts
extending it to contain both creation and runtime code. Currently it can only fit one bytecode type thus resulting in script code generating differentContractsByArtifacts
object for different purposes making code a bit harder to navigate. This allowed to add more context toMultiContractRunner::known_contracts
and simplify scripting code a bit by storingContractsByArtifacts
directly instead of generating each time.Added creation code to
ContractsByArtifacts
allowed us to map collected hitmaps for creation codes to artifacts viafind_by_creation_code
fn, thus extending coverage to also process creation code just required duplicating anchors discovery and processing logic