Skip to content

Commit

Permalink
Merge pull request Agoric#16 from BigManing/master
Browse files Browse the repository at this point in the history
fix file path
  • Loading branch information
gamarin2 authored Nov 27, 2018
2 parents a752772 + d4cfddc commit 180931d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorial/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Notes on the above code:
* The first part of the path is used to differentiate the types of queries possible to SDK applications: `custom` is for `Queriers`.
* The second piece (`nameservice`) is the name of the module to route the query to.
* Finally there is the specific querier in the module that will be called.
* In this example the fourth piece is the query. This works because the query parameter is a simple string. To enable more complex query inputs you need to use the second argument of the [`.QueryWithData()`](https://godoc.org/github.com/cosmos/cosmos-sdk/client/context#CLIContext.QueryWithData) function to pass in `data`. For an example of this see the [queriers in the Staking module](https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/querier/queryable.go#L103).
* In this example the fourth piece is the query. This works because the query parameter is a simple string. To enable more complex query inputs you need to use the second argument of the [`.QueryWithData()`](https://godoc.org/github.com/cosmos/cosmos-sdk/client/context#CLIContext.QueryWithData) function to pass in `data`. For an example of this see the [queriers in the Staking module](https://github.com/cosmos/cosmos-sdk/blob/develop/x/stake/querier/querier.go#L103).

Now that the query interactions are defined, it is time to move on to transaction generation in `tx.go`:

Expand Down

0 comments on commit 180931d

Please sign in to comment.