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: Create2Factory on scripts #577

Merged
merged 15 commits into from
Sep 17, 2024
Merged

fix: Create2Factory on scripts #577

merged 15 commits into from
Sep 17, 2024

Conversation

Jrigada
Copy link
Contributor

@Jrigada Jrigada commented Sep 16, 2024

Motivation

Using create2 in a script does not work as expected, as mentioned in this issue. Create2 was working for tests, but due to a check in the scripting process, we were unable to deploy it correctly in this case.

Solution

Adapt the script flow to use the create2Factory deployed in zksync

@Jrigada Jrigada marked this pull request as ready for review September 16, 2024 14:45
@Jrigada Jrigada requested a review from Karrq September 16, 2024 14:45
Copy link
Contributor

@Karrq Karrq left a comment

Choose a reason for hiding this comment

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

Awesome! What was the issue left since Friday? The output address?

crates/cheatcodes/src/inspector.rs Outdated Show resolved Hide resolved
crates/cheatcodes/src/inspector.rs Outdated Show resolved Hide resolved
crates/cheatcodes/src/inspector.rs Outdated Show resolved Hide resolved
crates/cheatcodes/src/inspector.rs Outdated Show resolved Hide resolved
crates/cheatcodes/src/inspector.rs Outdated Show resolved Hide resolved
crates/evm/core/src/constants.rs Outdated Show resolved Hide resolved
crates/evm/core/src/utils.rs Outdated Show resolved Hide resolved
crates/forge/tests/fixtures/zk/Create2.s.sol Outdated Show resolved Hide resolved
crates/forge/tests/it/zk/deploy.rs Outdated Show resolved Hide resolved
@Jrigada Jrigada requested review from Karrq and nbaztec September 17, 2024 11:33
nbaztec
nbaztec previously approved these changes Sep 17, 2024
Copy link
Collaborator

@nbaztec nbaztec left a comment

Choose a reason for hiding this comment

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

lgtm

crates/evm/core/src/utils.rs Outdated Show resolved Hide resolved
crates/forge/tests/fixtures/zk/Create2.s.sol Show resolved Hide resolved
crates/forge/tests/it/zk/deploy.rs Outdated Show resolved Hide resolved
@Jrigada Jrigada requested a review from Karrq September 17, 2024 14:56
@Jrigada Jrigada merged commit bc065c0 into main Sep 17, 2024
11 checks passed
@Jrigada Jrigada deleted the fix-create2-factory-on-scripts branch September 17, 2024 17:15
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