From 5859846bb97cf05f06e32e3c922eac94075a5dd9 Mon Sep 17 00:00:00 2001 From: Harish Marri Date: Wed, 4 Sep 2024 00:48:32 +0530 Subject: [PATCH] remove onft denom symbol validation --- readme.md | 2 +- x/onft/types/genesis.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index 13941b95..50f6ff3d 100644 --- a/readme.md +++ b/readme.md @@ -76,7 +76,7 @@ curl https://raw.githubusercontent.com/OmniFlix/mainnet/main/omniflixhub-1/genes - [v2.1]((https://github.com/OmniFlix/docs/blob/main/guides/mainnet/omniflixhub-1/upgrades/v2.1-upgrade.md)) at block 10678600 - [v3]((https://github.com/OmniFlix/docs/blob/main/guides/mainnet/omniflixhub-1/upgrades/v3-upgrade.md)) at block 10872800 - [v3.3.0]((https://github.com/OmniFlix/docs/blob/main/guides/mainnet/omniflixhub-1/upgrades/v3.3.0-upgrade.md)) at block 11140000 - - [v4]((https://github.com/OmniFlix/docs/blob/main/guides/mainnet/omniflixhub-1/upgrades/v4-upgrade.md)) at block 11914000 + - [v4]((https://github.com/OmniFlix/docs/blob/main/guides/mainnet/omniflixhub-1/upgrades/v4-upgrade.md)) at block 11914000 ### Testnets diff --git a/x/onft/types/genesis.go b/x/onft/types/genesis.go index fe918f15..2a8a00bd 100644 --- a/x/onft/types/genesis.go +++ b/x/onft/types/genesis.go @@ -22,9 +22,10 @@ func ValidateGenesis(data GenesisState) error { if creator.Empty() { return errorsmod.Wrap(sdkerrors.ErrInvalidAddress, "missing denom creator") } - if err := ValidateDenomID(c.Denom.Id); err != nil { - return err - } + /* + if err := ValidateDenomID(c.Denom.Id); err != nil { + return err + } */ if err := ValidateName(c.Denom.Name); err != nil { return err }