feat: add ConditionalDeployer#18295
Closed
0xiamflux wants to merge 1 commit intoethereum-optimism:developfrom
Closed
feat: add ConditionalDeployer#182950xiamflux wants to merge 1 commit intoethereum-optimism:developfrom
0xiamflux wants to merge 1 commit intoethereum-optimism:developfrom
Conversation
mds1
reviewed
Nov 15, 2025
| /// @notice Intermediary contract for deploying predeploy implementations during network upgrades. | ||
| contract ConditionalDeployer { | ||
| /// @notice Address of the Create2Deployer preinstall. | ||
| address payable private constant CREATE2_DEPLOYER = payable(0x13b0D85CcB8bf860b6b79AF3029fCA081AE9beF2); |
Contributor
There was a problem hiding this comment.
Nit, would suggest we either use arachnid's deployer (0x4e59b44847b379578588920cA78FbF26c0B4956C, that's the current forge default + what we use for L1), or CreateX (0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed, may become the forge default and can change L1 to match that later). Both are already preinstalls: https://docs.optimism.io/chain-operators/reference/features/preinstalls
Contributor
|
This pr has been automatically marked as stale and will be closed in 5 days if no updates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add Conditional Deployer
Adds a wrapper around Create2Deployer to be used during Network Upgrade Transactions, allowing for non-reverting deterministic deployments even when address collisions occur.
Changes
ConditionalDeployer.sol
Create2Deployerfor conditional deployment of contracts, in case of an address collision simply returns the address without reverting.