From 6b872f4d7ab6c76cf681bdb68d4826af64728e03 Mon Sep 17 00:00:00 2001 From: huangweichang Date: Thu, 2 Sep 2021 12:09:26 +0800 Subject: [PATCH] coin denom support `-` --- types/coin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/coin.go b/types/coin.go index 89acbdbc..da49b525 100644 --- a/types/coin.go +++ b/types/coin.go @@ -579,7 +579,7 @@ func (coins Coins) Sort() Coins { var ( // Denominations can be 3 ~ 64 characters long. - reDnmString = `[a-zA-Z][a-zA-Z0-9/:]{2,127}` + reDnmString = `[a-zA-Z][a-zA-Z0-9/:-]{2,127}` reAmt = `[[:digit:]]+` reDecAmt = `[[:digit:]]*[.]*[[:digit:]]+` reSpc = `[[:space:]]*`