Skip to content

Commit

Permalink
check either DGFAddress or L2OOAddress was provided (ethereum-optimis…
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiangxu authored May 14, 2024
1 parent cafad53 commit 6e98522
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions op-proposer/proposer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ func (c *CLIConfig) Check() error {
return err
}

if c.DGFAddress == "" && c.L2OOAddress == "" {
return errors.New("neither the `DisputeGameFactory` nor `L2OutputOracle` address was provided")
}
if c.DGFAddress != "" && c.L2OOAddress != "" {
return errors.New("both the `DisputeGameFactory` and `L2OutputOracle` addresses were provided")
}
Expand Down

0 comments on commit 6e98522

Please sign in to comment.