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(cheatcodes): Record call to create2 factory in state diff #7207

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

RPate97
Copy link
Contributor

@RPate97 RPate97 commented Feb 22, 2024

Motivation

#6634

Solution

Adds logic to include the call to the create2 factory in the results returned by the vm.stopAndReturnStateDiff() cheat code in all cases where it is used.

Additional Context

This is a follow-up to #6656, which was recently merged and allows the default create2 factory to be used in tests and non-broadcasting scripts. The logic in this PR integrates with those changes so that the call to the create2 factory is properly recorded in all situations, including when the always_use_create_2_factory option is enabled.

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.

thanks, sounds reasonable.

some cosmetic nits

crates/cheatcodes/src/inspector.rs Outdated Show resolved Hide resolved
crates/cheatcodes/src/inspector.rs Outdated 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.

2 participants