Skip to content

Commit

Permalink
add tibc token check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamer committed Aug 19, 2021
1 parent 0a02d84 commit b299e3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/token/types/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,15 @@ const (
const (
ReservedPeg = "peg"
ReservedIBC = "ibc"
ReservedTIBC = "tibc"
ReservedLpt = "lpt"
ReservedHTLT = "htlt"
)

var (
keywords = strings.Join([]string{ReservedPeg, ReservedIBC, ReservedLpt, ReservedHTLT}, "|")
keywords = strings.Join([]string{
ReservedPeg, ReservedIBC, ReservedLpt, ReservedHTLT, ReservedTIBC,
}, "|")
regexpKeywordsFmt = fmt.Sprintf("^(%s).*", keywords)
regexpKeyword = regexp.MustCompile(regexpKeywordsFmt).MatchString

Expand Down

0 comments on commit b299e3e

Please sign in to comment.