Summary of Bug
The GetTxsEvents endpoint expects all events will contain a = comparison, even though Tendermint itself supports >, >=, <, <= comparisons (indeed, the node.TxSearch comment specifies "tx.height > 5" as an example).
Version
v0.46.x
Steps to Reproduce
Submit a GetTxsEvents request, containing "tx.Height>5" and Cosmos rejects it for not matching the format "x.x=y", despite this being a valid event from Tendermint's PoV.
|
EventRegex = regexp.MustCompile(`^[a-zA-Z_]+\.[a-zA-Z_]+=\S+$`) |
Summary of Bug
The GetTxsEvents endpoint expects all events will contain a
=comparison, even though Tendermint itself supports >, >=, <, <= comparisons (indeed, thenode.TxSearchcomment specifies "tx.height > 5" as an example).Version
v0.46.x
Steps to Reproduce
Submit a GetTxsEvents request, containing
"tx.Height>5"and Cosmos rejects it for not matching the format "x.x=y", despite this being a valid event from Tendermint's PoV.cosmos-sdk/x/auth/tx/service.go
Line 48 in 6081491