diff --git a/types/genesis.go b/types/genesis.go index 5c27bd5..a4b860b 100644 --- a/types/genesis.go +++ b/types/genesis.go @@ -8,10 +8,9 @@ func NewGenesisState(collections []Collection) *GenesisState { } } - func ValidateGenesis(data GenesisState) error { for _, c := range data.Collections { - if err := ValidateDenomID(c.Denom.Name); err != nil { + if err := ValidateDenomID(c.Denom.Id); err != nil { return err } @@ -30,4 +29,4 @@ func ValidateGenesis(data GenesisState) error { } } return nil -} \ No newline at end of file +}