Skip to content

Commit

Permalink
cosmrs: expand Denom allowed characters (#468)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kayanski authored May 3, 2024
1 parent 8a4ce73 commit 4f2e3bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cosmrs/src/base/denom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl FromStr for Denom {
fn from_str(s: &str) -> Result<Self> {
// TODO(tarcieri): ensure this is the proper validation for a denom name
if s.chars()
.all(|c| matches!(c, 'A'..='Z' | 'a'..='z' | '0'..='9' | '/'))
.all(|c| matches!(c, 'A'..='Z' | 'a'..='z' | '0'..='9' | '/' | ':' | '.' | '_' | '-'))
{
Ok(Denom(s.to_owned()))
} else {
Expand Down

0 comments on commit 4f2e3bb

Please sign in to comment.