fix(op-deployer): remove superchainRoles standard value check #17916
+0
−13
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.
Description
Inconsistency between standard chain validation and genesis deployment requirements in
op-deployer. The standard intent type (configType = "standard") validation rejects superchain roles, but the genesis deployment target requires them. This makes it impossible to deploy a standard chain using the genesis target.Steps to Reproduce
Install op-deployer following the guide:
op-deployer/book/src/user-guide/installation.mdInitialize a standard chain configuration.
e.g:
Specify configuration on
./test-standard/intent.toml.e.g:
Attempt to deploy using genesis target:
Observe error: "superchain roles must be set for genesis strategy"
Add superchain roles to intent.toml:
Observe new error: "chain contains incompatible config value"
Expected behavior
Should be able to deploy a standard chain using the genesis target without configuration conflicts. The validation rules should be consistent between deployment targets and intent types.
Additional context
The issue stems from conflicting validations in:
pipeline/init.go:InitGenesisStrategyrequires superchain roles for genesis deployment.state/intent.go:validateStandardValuesrejects superchain roles for standard intent type.Proposed Solution
Remove the superchain roles validation for standard intent type in
state/intent.go.The
pipeline/init.gocheck remains as the superchain roles are required for executingDeploySuperchainfunction.Note: This change only affects the genesis deployment target. The live deployment target (
InitLiveStrategy) is unaffected because:For standard intent type,
validateStandardValuesrequires OPCM address to be set.When OPCM address is set,
InitLiveStrategyrequires SuperchainRoles to be set too: