Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update denom validation #468

Merged
merged 2 commits into from
May 3, 2024
Merged

Update denom validation #468

merged 2 commits into from
May 3, 2024

Conversation

Kayanski
Copy link
Contributor

@Kayanski Kayanski commented May 3, 2024

This PR aims at updating cosmrs to handle all valid coin denoms

Context

With token factory modules, denoms are more diverse than before.
Denom validation must follow

Here is the Cosmos sdk coin validation function
https://github.com/cosmos/cosmos-sdk/blob/94338e516d6fd095fdca175b47d87bd9020e7740/types/coin.go#L890

@tony-iqlusion
Copy link
Member

Good find on the upstream Cosmos SDK validation function... do you mind implementing the length check too, and removing the TODO and replacing it with a link to the upstream code? I can do it otherwise

@Kayanski
Copy link
Contributor Author

Kayanski commented May 3, 2024

Hmm, letting you do this one if that's ok. Thanks

@Kayanski Kayanski changed the title Update denom.rs Update denom validation May 3, 2024
@tony-iqlusion tony-iqlusion merged commit 4f2e3bb into cosmos:main May 3, 2024
7 checks passed
@tony-iqlusion tony-iqlusion mentioned this pull request Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants