We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a157fe + 0ff4884 commit 6ea2596Copy full SHA for 6ea2596
packages/cosmos/src/parsed_coin.rs
@@ -69,7 +69,7 @@ impl FromStr for ParsedCoin {
69
let (amount, denom) = s.split_at(denom_first_index);
70
71
for char in denom.chars() {
72
- if !char.is_ascii_alphanumeric() && char != '/' {
+ if !char.is_ascii_alphanumeric() && char != '/' && char != '-' {
73
return Err(ParsedCoinError::InvalidDenom {
74
input: s.to_owned(),
75
});
0 commit comments