Skip to content

Commit

Permalink
fix: fixed genesis validation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Nov 23, 2021
1 parent 888a0e5 commit e348b33
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand All @@ -30,4 +29,4 @@ func ValidateGenesis(data GenesisState) error {
}
}
return nil
}
}

0 comments on commit e348b33

Please sign in to comment.