18 lines
383 B
Go
18 lines
383 B
Go
|
package onboarding
|
||
|
|
||
|
// NewGenesisState creates a new genesis state with default values.
|
||
|
func NewGenesisState() *GenesisState {
|
||
|
return &GenesisState{
|
||
|
Params: DefaultParams(),
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Validate performs basic genesis state validation returning an error upon any
|
||
|
func (gs *GenesisState) Validate() error {
|
||
|
if err := gs.Params.Validate(); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|