Skip to content

Commit

Permalink
update onft genesis validation
Browse files Browse the repository at this point in the history
  • Loading branch information
harish551 committed Jan 31, 2024
1 parent ad4e06b commit 935c79e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions x/onft/types/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func ValidateGenesis(data GenesisState) error {
if err := ValidateURI(c.Denom.PreviewURI); err != nil {
return err
}
if c.Denom.RoyaltyReceivers != nil {
if err := ValidateWeightedAddresses(c.Denom.RoyaltyReceivers); err != nil {
return err
}
}

for _, nft := range c.ONFTs {
if nft.GetOwner().Empty() {
Expand Down

0 comments on commit 935c79e

Please sign in to comment.