Skip to content

Commit

Permalink
skip validation for SL mock
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsitrin committed Jun 28, 2023
1 parent 50b986b commit 705c4db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ func (c NodeConfig) Validate() error {
return err
}

if err := c.SettlementConfig.Validate(); err != nil {
return err
if c.SettlementLayer != "mock" {
if err := c.SettlementConfig.Validate(); err != nil {
return err
}
}

//TODO: validate DA config
Expand Down
4 changes: 4 additions & 0 deletions settlement/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ func (c Config) Validate() error {
return errors.New("must provide either fees or gas prices")
}

if c.RollappID == "" {
return errors.New("must provide rollapp id")
}

return nil
}

0 comments on commit 705c4db

Please sign in to comment.