diff --git a/CHANGELOG.md b/CHANGELOG.md index 3db28ed33097..14027dea492c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,7 +37,7 @@ Ref: https://keepachangelog.com/en/1.0.0/ ## [Unreleased] -## [v0.46.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.5) - 2022-11-14 +## [v0.46.5](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.5) - 2022-11-16 ### Improvements @@ -49,7 +49,8 @@ Ref: https://keepachangelog.com/en/1.0.0/ * (x/bank) [#13821](https://github.com/cosmos/cosmos-sdk/pull/13821) Fix bank store migration of coin metadata. * (x/group) [#13808](https://github.com/cosmos/cosmos-sdk/pull/13808) Fix propagation of message events to the current context in `EndBlocker`. * (x/gov) [#13728](https://github.com/cosmos/cosmos-sdk/pull/13728) Fix propagation of message events to the current context in `EndBlocker`. -* (store) [#13803](https://github.com/cosmos/cosmos-sdk/pull/13803) Add an error log if iavl set operation failed. +* (store) [#13803](https://github.com/cosmos/cosmos-sdk/pull/13803) Add an error log if IAVL set operation failed. +* [#13861](https://github.com/cosmos/cosmos-sdk/pull/13861) Allow `_` characters in tx event queries, i.e. `GetTxsEvent`. ## [v0.46.4](https://github.com/cosmos/cosmos-sdk/releases/tag/v0.46.4) - 2022-11-01 diff --git a/x/auth/tx/service.go b/x/auth/tx/service.go index 8c8e0a2347f9..6bc4c95120c0 100644 --- a/x/auth/tx/service.go +++ b/x/auth/tx/service.go @@ -45,7 +45,7 @@ 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+$`) + EventRegex = regexp.MustCompile(`^[a-zA-Z_]+\.[a-zA-Z_]+=\S+$`) ) const ( diff --git a/x/auth/tx/service_test.go b/x/auth/tx/service_test.go index f5cccb5ae8db..e61abadd7a48 100644 --- a/x/auth/tx/service_test.go +++ b/x/auth/tx/service_test.go @@ -164,6 +164,11 @@ func TestEventRegex(t *testing.T) { event: "tx.message='something'", match: true, }, + { + name: "valid: with underscores", + event: "claim_reward.message_action='something'", + match: true, + }, { name: "valid: no quotes", event: "tx.message=something",