From b299e3ebcada2327b8e4404890210a3e5b7e5b59 Mon Sep 17 00:00:00 2001 From: Dreamer <745124335@qq.com> Date: Thu, 19 Aug 2021 15:34:18 +0800 Subject: [PATCH] add tibc token check --- modules/token/types/validation.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/token/types/validation.go b/modules/token/types/validation.go index cd41a63b..72a073b2 100644 --- a/modules/token/types/validation.go +++ b/modules/token/types/validation.go @@ -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