Skip to content

Commit

Permalink
fix: query tx events with >= and <= operators (cosmos#16994)
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp authored and JeancarloBarrios committed Sep 28, 2024
1 parent d33847b commit 78db184
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/auth/tx/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ var (
_ txtypes.ServiceServer = txServer{}

// EventRegex checks that an event string is formatted with {alphabetic}.{alphabetic}={value}
EventRegex = regexp.MustCompile(`^[a-zA-Z_]+\.[a-zA-Z_]+=\S+$`)
// Note: in addition to equality, the `>=` and `<=` operators are also valid.
EventRegex = regexp.MustCompile(`^[a-zA-Z_]+\.[a-zA-Z_]+[<>]?=\S+$`)
)

const (
Expand Down

0 comments on commit 78db184

Please sign in to comment.