fix(cli): avoid id isn't supported error when query address-by-acc-num (#21919)

This commit is contained in:
mmsqe 2024-09-26 15:11:05 +08:00 committed by GitHub
parent 3856e777b4
commit cb9ed71efc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -56,6 +56,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i
### Bug Fixes
* (sims) [21906](https://github.com/cosmos/cosmos-sdk/pull/21906) Skip sims test when running dry on validators
* (cli) [#21919](https://github.com/cosmos/cosmos-sdk/pull/21919) Query address-by-acc-num by account_id instead of id.
### API Breaking Changes

View File

@ -38,7 +38,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions {
RpcMethod: "AccountAddressByID",
Use: "address-by-acc-num <acc-num>",
Short: "Query account address by account number",
PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "id"}},
PositionalArgs: []*autocliv1.PositionalArgDescriptor{{ProtoField: "account_id"}},
},
{
RpcMethod: "ModuleAccounts",