From d25418100519b2444e156c3b1a59b43d1ff4f20a Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sat, 28 Dec 2024 22:39:24 +0100 Subject: [PATCH] docs: updates Example, Use auctocli (backport #23088) (#23113) Co-authored-by: DongLieu <93205232+DongLieu@users.noreply.github.com> --- x/distribution/autocli.go | 2 +- x/staking/autocli.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/x/distribution/autocli.go b/x/distribution/autocli.go index 49c3fefe929a..8fd609317255 100644 --- a/x/distribution/autocli.go +++ b/x/distribution/autocli.go @@ -63,7 +63,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcMethod: "DelegationRewards", Use: "rewards-by-validator ", Short: "Query all distribution delegator from a particular validator", - Example: fmt.Sprintf("$ %s query distribution rewards [delegator-address] [validator-address]", version.AppName), + Example: fmt.Sprintf("$ %s query distribution rewards-by-validator [delegator-address] [validator-address]", version.AppName), PositionalArgs: []*autocliv1.PositionalArgDescriptor{ {ProtoField: "delegator_address"}, {ProtoField: "validator_address"}, diff --git a/x/staking/autocli.go b/x/staking/autocli.go index e779e33d8eb7..03e84efa2718 100644 --- a/x/staking/autocli.go +++ b/x/staking/autocli.go @@ -17,6 +17,7 @@ func (am AppModule) AutoCLIOptions() *autocliv1.ModuleOptions { RpcCommandOptions: []*autocliv1.RpcCommandOptions{ { RpcMethod: "Validators", + Use: "validators", Short: "Query for all validators", Long: "Query details about all validators on a network.", },