Skip to content

Commit 612bc4c

Browse files
feat(client/v2): add map support (backport #23544) (#23553)
Co-authored-by: Julien Robert <[email protected]>
1 parent 96dd0d7 commit 612bc4c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

client/v2/CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ Ref: https://keepachangelog.com/en/1.0.0/
3636

3737
## [Unreleased]
3838

39+
## [v2.10.0-beta.3](https://github.com/cosmos/cosmos-sdk/releases/tag/client/v2/v2.10.0-beta.3) 2025-01-29
40+
41+
* [#23544](https://github.com/cosmos/cosmos-sdk/pull/23544) Support map in queries for autocli.
42+
3943
## [v2.10.0-beta.2](https://github.com/cosmos/cosmos-sdk/releases/tag/client/v2/v2.10.0-beta.2) - 2025-01-22
4044

4145
* [#23325](https://github.com/cosmos/cosmos-sdk/pull/23325) Remove `NewAppOptionsFromConfig` that isn't needed in normal wiring.
@@ -112,7 +116,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
112116
* [#20083](https://github.com/cosmos/cosmos-sdk/pull/20083) Integrate latest version of cosmos-proto and improve version filtering.
113117
* [#19618](https://github.com/cosmos/cosmos-sdk/pull/19618) Marshal enum as string in queries.
114118
* [#19060](https://github.com/cosmos/cosmos-sdk/pull/19060) Use client context from root (or enhanced) command in autocli commands.
115-
* Note, the given command must have a `client.Context` in its context.
119+
* Note, the given command must have a `client.Context` in its context.
116120
* [#19216](https://github.com/cosmos/cosmos-sdk/pull/19216) Do not overwrite TxConfig, use directly the one provided in context. TxConfig should always be set in the `client.Context` in `root.go` of an app.
117121
* [#20266](https://github.com/cosmos/cosmos-sdk/pull/20266) Add ability to override the short description in AutoCLI-generated top-level commands.
118122

client/v2/autocli/query.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func (b *Builder) BuildQueryMethodCommand(ctx context.Context, descriptor protor
124124
EnumAsString: true,
125125
DoNotSortFields: true,
126126
AminoNameAsTypeURL: true,
127+
MarshalMappings: true,
127128
TypeResolver: b.TypeResolver,
128129
FileResolver: b.FileResolver,
129130
}

0 commit comments

Comments
 (0)