Commit 6e98522f authored by zhiqiangxu's avatar zhiqiangxu Committed by GitHub

check either DGFAddress or L2OOAddress was provided (#10528)

parent cafad531
...@@ -77,6 +77,9 @@ func (c *CLIConfig) Check() error { ...@@ -77,6 +77,9 @@ func (c *CLIConfig) Check() error {
return err return err
} }
if c.DGFAddress == "" && c.L2OOAddress == "" {
return errors.New("neither the `DisputeGameFactory` nor `L2OutputOracle` address was provided")
}
if c.DGFAddress != "" && c.L2OOAddress != "" { if c.DGFAddress != "" && c.L2OOAddress != "" {
return errors.New("both the `DisputeGameFactory` and `L2OutputOracle` addresses were provided") return errors.New("both the `DisputeGameFactory` and `L2OutputOracle` addresses were provided")
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment