Skip to content

Commit

Permalink
Compatible native token denom
Browse files Browse the repository at this point in the history
for Smart Contracts to issue native tokens and easy IBC adoption 
 
gnolang#393
  • Loading branch information
piux2 authored Dec 2, 2022
1 parent b0fe197 commit e8a9ddc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkgs/std/coin.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,8 +617,9 @@ func (coins Coins) Sort() Coins {
// Parsing

var (
// Denominations can be 3 ~ 16 characters long.
reDnmString = `[a-z][a-z0-9]{2,15}`
// Denominations can be 3 ~ 128 characters long and support letters, followed by either
// a letter, a number or a separator ('/', ':', '.', '_' or '-').
reDnmString = `[a-zA-Z][a-zA-Z0-9/:._-]{2,127}`
reAmt = `[[:digit:]]+`
reDecAmt = `[[:digit:]]*\.[[:digit:]]+`
reSpc = `[[:space:]]*`
Expand Down

0 comments on commit e8a9ddc

Please sign in to comment.