Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions op-deployer/pkg/deployer/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ func (a *ApplyConfig) Check() error {
return fmt.Errorf("logger must be specified")
}

if a.DeploymentTarget == DeploymentTargetGenesis {
if a.L1RPCUrl != "" {
return fmt.Errorf("l1-rpc-url should not be specified when deployment-target is genesis")
}
}

if a.DeploymentTarget == DeploymentTargetLive {
if a.L1RPCUrl == "" {
return fmt.Errorf("l1 RPC URL must be specified for live deployment")
Expand Down
2 changes: 1 addition & 1 deletion op-deployer/pkg/deployer/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var (
L1RPCURLFlag = &cli.StringFlag{
Name: L1RPCURLFlagName,
Usage: "RPC URL for the L1 chain. Must be set for live chains. " +
"Can be blank for chains deploying to local allocs files.",
"Must be blank for chains deploying to local allocs files.",
EnvVars: []string{
"L1_RPC_URL",
},
Expand Down