Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Enable/Disable controller/host on-chain params #566

Merged
merged 10 commits into from
Dec 1, 2021
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 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these technically cannot return an error. Validate only checks that params contain a bool as its field (the compiler would break if it didn't)

Keeping here for when we add more params which do validation

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem, I'll likely have something ready today. I'll just need to pull in your latest changes. Ack the additions :)

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
}