Skip to content

Commit 442b712

Browse files
crodriguezvegamergify[bot]
authored andcommitted
add actual parameter example to denom-trace and denom-hash CLI queries (#1442)
(cherry picked from commit 8062d01) # Conflicts: # modules/apps/transfer/client/cli/query.go
1 parent b61fbbe commit 442b712

File tree

1 file changed

+8
-1
lines changed
  • modules/apps/transfer/client/cli

1 file changed

+8
-1
lines changed

modules/apps/transfer/client/cli/query.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,17 @@ import (
1414
// GetCmdQueryDenomTrace defines the command to query a a denomination trace from a given hash.
1515
func GetCmdQueryDenomTrace() *cobra.Command {
1616
cmd := &cobra.Command{
17+
<<<<<<< HEAD
1718
Use: "denom-trace [hash]",
1819
Short: "Query the denom trace info from a given trace hash",
1920
Long: "Query the denom trace info from a given trace hash",
2021
Example: fmt.Sprintf("%s query ibc-transfer denom-trace [hash]", version.AppName),
22+
=======
23+
Use: "denom-trace [hash/denom]",
24+
Short: "Query the denom trace info from a given trace hash or ibc denom",
25+
Long: "Query the denom trace info from a given trace hash or ibc denom",
26+
Example: fmt.Sprintf("%s query ibc-transfer denom-trace 27A6394C3F9FF9C9DCF5DFFADF9BB5FE9A37C7E92B006199894CF1824DF9AC7C", version.AppName),
27+
>>>>>>> 8062d01 (add actual parameter example to denom-trace and denom-hash CLI queries (#1442))
2128
Args: cobra.ExactArgs(1),
2229
RunE: func(cmd *cobra.Command, args []string) error {
2330
clientCtx, err := client.GetClientQueryContext(cmd)
@@ -138,7 +145,7 @@ func GetCmdQueryDenomHash() *cobra.Command {
138145
Use: "denom-hash [trace]",
139146
Short: "Query the denom hash info from a given denom trace",
140147
Long: "Query the denom hash info from a given denom trace",
141-
Example: fmt.Sprintf("%s query ibc-transfer denom-hash [denom_trace]", version.AppName),
148+
Example: fmt.Sprintf("%s query ibc-transfer denom-hash transfer/channel-0/uatom", version.AppName),
142149
Args: cobra.ExactArgs(1),
143150
RunE: func(cmd *cobra.Command, args []string) error {
144151
clientCtx, err := client.GetClientQueryContext(cmd)

0 commit comments

Comments
 (0)