feat: add ConditionalDeployer#687
Merged
0xiamflux merged 1 commit intosc-feat/l2cm-conditional-deployerfrom Nov 14, 2025
Merged
feat: add ConditionalDeployer#6870xiamflux merged 1 commit intosc-feat/l2cm-conditional-deployerfrom
0xiamflux merged 1 commit intosc-feat/l2cm-conditional-deployerfrom
Conversation
0xOneTony
approved these changes
Nov 14, 2025
There was a problem hiding this comment.
This is the final PR Bugbot will review for you during this billing cycle
Your free Bugbot reviews will reset on November 16
Details
Your team is on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle for each member of your team.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
0xOneTony
added a commit
that referenced
this pull request
Feb 13, 2026
* feat: add ConditionalDeployer (#687) * feat: refactor l2cm conditional deployer predeploy and add L2CM dev flag (#836) * refactor: replace create2 deployer for arachnid * feat: add ConditionalDeployer as predeploy and add L2CM dev flag * fix: add pre-pr fix * fix: remove unnecessary auth in conditional deployer * feat: add custom error for deployment revert * test: add l2cm e2e apply test case * fix: conditional deployer tests and match style guide * fix: remove fork test * feat: add common test to cond deployer test * fix: follow constant style guide * fix: comments and add msg.value to ConditionalDeployer * fix: conditional deployer comment in apply test * fix: arachnid reference comment * fix: add msg.value to conditional deployer * fix: deterministic deployment proxy comment * fix: add code length check after deploy * fix: add code length check after deploy * fix: pre pr fix * refactor: remove useL2CM bool initialization * fix: make deploy non payable and add tests * fix: make deploy non payable * test: add missing getters test * fix: add missing natspec * feat: add todo issue for devfeatures cyclic import * chore: pre pr run * refactor: add returned address check in deploy * fix: use encodePacked for return address test * fix: unify getters in a single test contract * fix: variables naming and mutability * fix: remove underscore from local variable * fix: remove address payable from deterministicDeploymentProxy * refactor: rename dummy storage variable in test and add internal getExpectedImplementation helper --------- Co-authored-by: niha <205694301+0xniha@users.noreply.github.com> Co-authored-by: OneTony <onetony@defi.sucks> Co-authored-by: 0xOneTony <112496816+0xOneTony@users.noreply.github.com>
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.
Note
Adds a ConditionalDeployer that conditionally deploys implementations via CREATE2 using a preinstall, with authorization and comprehensive tests.
packages/contracts-bedrock/src/L2/ConditionalDeployer.sol:ICreate2Deployerpreinstall tocomputeAddressanddeployvia CREATE2.ImplementationDeployed/ImplementationExists.onlyAuthorized(depositor account oraddress(0)).packages/contracts-bedrock/interfaces/preinstalls/ICreate2Deployer.solwithdeploy,deployERC1820Implementer,computeAddress,computeAddressWithDeployer, andreceive().packages/contracts-bedrock/test/L2/ConditionalDeployer.t.sol:ImplementationExists), and unauthorized caller revert.Written by Cursor Bugbot for commit 263fee2. This will update automatically on new commits. Configure here.