@@ -14,10 +14,17 @@ import (
14
14
// GetCmdQueryDenomTrace defines the command to query a a denomination trace from a given hash.
15
15
func GetCmdQueryDenomTrace () * cobra.Command {
16
16
cmd := & cobra.Command {
17
+ << << << < HEAD
17
18
Use : "denom-trace [hash]" ,
18
19
Short : "Query the denom trace info from a given trace hash" ,
19
20
Long : "Query the denom trace info from a given trace hash" ,
20
21
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
+ >> >> >> > 8062 d01 (add actual parameter example to denom - trace and denom - hash CLI queries (#1442 ))
21
28
Args : cobra .ExactArgs (1 ),
22
29
RunE : func (cmd * cobra.Command , args []string ) error {
23
30
clientCtx , err := client .GetClientQueryContext (cmd )
@@ -138,7 +145,7 @@ func GetCmdQueryDenomHash() *cobra.Command {
138
145
Use : "denom-hash [trace]" ,
139
146
Short : "Query the denom hash info from a given denom trace" ,
140
147
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 ),
142
149
Args : cobra .ExactArgs (1 ),
143
150
RunE : func (cmd * cobra.Command , args []string ) error {
144
151
clientCtx , err := client .GetClientQueryContext (cmd )
0 commit comments