From 2b7e027dc7313ea1769ccf23b3d5d63904d94a69 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 23 Jun 2025 11:24:33 +0530 Subject: [PATCH] Remove unnecessary todo --- client/v2/internal/coins/format.go | 1 - types/coin.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/client/v2/internal/coins/format.go b/client/v2/internal/coins/format.go index 1525602f11..b3ca0866a8 100644 --- a/client/v2/internal/coins/format.go +++ b/client/v2/internal/coins/format.go @@ -11,7 +11,6 @@ import ( // Amount can be a whole number or a decimal number. Denominations can be 3 ~ 128 // characters long and support letters, followed by either a letter, a number or // a separator ('/', ':', '.', '_' or '-'). -// TODO: Update? var coinRegex = regexp.MustCompile(`^(\d+(\.\d+)?)([a-zA-Z][a-zA-Z0-9\/\:\._\-]{2,127})$`) // ParseCoin parses a coin from a string. The string must be in the format diff --git a/types/coin.go b/types/coin.go index 9d628b2d7c..93d42b4bb0 100644 --- a/types/coin.go +++ b/types/coin.go @@ -875,7 +875,7 @@ func ValidateDenom(denom string) error { } // isValidRune checks if a given rune is a valid character for a rune. -// It returns true if the rune is a letter, digit, '/', ':', '.', '_', or '-'. +// It returns true if the rune is a letter, digit, '/', ':', '.', '_', '-', or '$'. func isValidRune(r rune) bool { return unicode.IsLetter(r) || unicode.IsDigit(r) || r == '/' || r == ':' || r == '.' || r == '_' || r == '-' || r == '$' }