@@ -42,7 +42,7 @@ func GetCmdQuerySupply() *cobra.Command {
4242 Example : fmt .Sprintf ("$ %s query nft supply <denom-id>" , version .AppName ),
4343 Args : cobra .ExactArgs (1 ),
4444 RunE : func (cmd * cobra.Command , args []string ) error {
45- clientCtx , err := client .GetClientTxContext (cmd )
45+ clientCtx , err := client .GetClientQueryContext (cmd )
4646 if err != nil {
4747 return err
4848 }
@@ -85,7 +85,7 @@ func GetCmdQueryOwner() *cobra.Command {
8585 Example : fmt .Sprintf ("$ %s query nft owner <address> --denom-id=<denom-id>" , version .AppName ),
8686 Args : cobra .ExactArgs (1 ),
8787 RunE : func (cmd * cobra.Command , args []string ) error {
88- clientCtx , err := client .GetClientTxContext (cmd )
88+ clientCtx , err := client .GetClientQueryContext (cmd )
8989 if err != nil {
9090 return err
9191 }
@@ -128,7 +128,7 @@ func GetCmdQueryCollection() *cobra.Command {
128128 Example : fmt .Sprintf ("$ %s query nft collection <denom-id>" , version .AppName ),
129129 Args : cobra .ExactArgs (1 ),
130130 RunE : func (cmd * cobra.Command , args []string ) error {
131- clientCtx , err := client .GetClientTxContext (cmd )
131+ clientCtx , err := client .GetClientQueryContext (cmd )
132132 if err != nil {
133133 return err
134134 }
@@ -164,7 +164,7 @@ func GetCmdQueryDenoms() *cobra.Command {
164164 Long : "Query all denominations of all collections of NFTs." ,
165165 Example : fmt .Sprintf ("$ %s query nft denoms" , version .AppName ),
166166 RunE : func (cmd * cobra.Command , args []string ) error {
167- clientCtx , err := client .GetClientTxContext (cmd )
167+ clientCtx , err := client .GetClientQueryContext (cmd )
168168 if err != nil {
169169 return err
170170 }
@@ -194,7 +194,7 @@ func GetCmdQueryDenom() *cobra.Command {
194194 Example : fmt .Sprintf ("$ %s query nft denom <denom-id>" , version .AppName ),
195195 Args : cobra .ExactArgs (1 ),
196196 RunE : func (cmd * cobra.Command , args []string ) error {
197- clientCtx , err := client .GetClientTxContext (cmd )
197+ clientCtx , err := client .GetClientQueryContext (cmd )
198198 if err != nil {
199199 return err
200200 }
@@ -223,7 +223,7 @@ func GetCmdQueryNFT() *cobra.Command {
223223 Example : fmt .Sprintf ("$ %s query nft token <denom-id> <nft-id>" , version .AppName ),
224224 Args : cobra .ExactArgs (2 ),
225225 RunE : func (cmd * cobra.Command , args []string ) error {
226- clientCtx , err := client .GetClientTxContext (cmd )
226+ clientCtx , err := client .GetClientQueryContext (cmd )
227227 if err != nil {
228228 return err
229229 }
0 commit comments