Skip to content

Conversation

@Evalir
Copy link
Member

@Evalir Evalir commented Jul 14, 2023

Motivation

Closes #4807.

Solution

Include the CREATE2 factory deployer when starting up anvil by default, and add a new --disable-default-create2-deployer flag to not deploy it. It will also not be deployed if anvil is forking, to properly simulate the conditions of that chain.

TODOs:

  • Test when forking chains that already have this
  • Test when forking chain that don't have the factory

@Evalir Evalir changed the title [WIP] feat(anvil): Include CREATE2 deployer by default on new instances [WIP] Aug 15, 2023
@Evalir Evalir changed the title [WIP] feat(anvil): Include CREATE2 deployer by default on new instances Aug 15, 2023
@Evalir Evalir marked this pull request as ready for review August 15, 2023 23:13
@Evalir Evalir requested a review from mattsse August 17, 2023 22:28
@mattsse mattsse merged commit 1e6f441 into master Aug 18, 2023
@mattsse mattsse deleted the evalir/create-2-anvil branch August 18, 2023 14:14
mikelodder7 pushed a commit to LIT-Protocol/foundry that referenced this pull request Sep 12, 2023
…foundry-rs#5391)

* chore: install create_2_deployer

* chore: docs

* chore: comment codes

* fix: set proper runtime code

* fmt
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.

Anvil: CREATE2 Deployer not present on this chain. [0x4e59b44847b379578588920ca78fbf26c0b4956c]

3 participants