Skip to content

Commit

Permalink
gs.MonitoringInfo genesis populate
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani committed Oct 21, 2024
1 parent 1cf35a5 commit c1d4ea6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions x/monitoringp/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,14 @@ func (gs GenesisState) Validate() error {
if err := host.PortIdentifierValidator(gs.PortId); err != nil {
return err
}

// check monitoring info validity
if gs.MonitoringInfo != nil {
if err := gs.MonitoringInfo.SignatureCounts.Validate(); err != nil {
return err
}
}

// this line is used by starport scaffolding # genesis/types/validate

return gs.Params.Validate()
Expand Down

0 comments on commit c1d4ea6

Please sign in to comment.