Skip to content

Commit

Permalink
add genesis validation for controller and host params
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Dec 1, 2021
1 parent 40a6382 commit b807529
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/apps/27-interchain-accounts/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ func (gs ControllerGenesisState) Validate() error {
}
}

if err := gs.Params.Validate(); err != nil {
return err
}

return nil
}

Expand Down Expand Up @@ -127,5 +131,9 @@ func (gs HostGenesisState) Validate() error {
return err
}

if err := gs.Params.Validate(); err != nil {
return err
}

return nil
}

0 comments on commit b807529

Please sign in to comment.