Skip to content

Commit

Permalink
Merge branch 'am/8680-missing' of ssh://github.com/cosmos/cosmos-sdk …
Browse files Browse the repository at this point in the history
…into am/8680-missing
  • Loading branch information
amaury1093 committed Mar 1, 2021
2 parents 400889d + 7fa8527 commit 495e0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/auth/tx/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (s txServer) GetTxsEvent(ctx context.Context, req *txtypes.GetTxsEventReque
}

for _, event := range req.Events {
if !strings.Contains(event, "=") || strings.Count(event, "=") > 1 {
if strings.Count(event, "=") != 1 {
return nil, status.Error(codes.InvalidArgument, fmt.Sprintf("invalid event; event %s should be of the format: %s", event, eventFormat))
}
}
Expand Down

0 comments on commit 495e0dc

Please sign in to comment.