Merge PR #4550: Minor Cleanup

This commit is contained in:
Alexander Bezobchuk
2019-06-14 11:52:28 +02:00
committed by GitHub
parent 95f3d32250
commit d5fe9b7eef
5 changed files with 12 additions and 15 deletions
+4 -4
View File
@@ -30,10 +30,10 @@ func (ctx CLIContext) GetNode() (rpcclient.Client, error) {
}
// Query performs a query to a Tendermint node with the provided path.
// It returns the result and height of the query upon success
// or an error if the query fails.
func (ctx CLIContext) Query(path string, data cmn.HexBytes) ([]byte, int64, error) {
return ctx.query(path, data)
// It returns the result and height of the query upon success or an error if
// the query fails.
func (ctx CLIContext) Query(path string) ([]byte, int64, error) {
return ctx.query(path, nil)
}
// QueryWithData performs a query to a Tendermint node with the provided path