Skip to content

Commit

Permalink
fix(gnokey): remove height and prove flags in query (gnolang#2234)
Browse files Browse the repository at this point in the history
relate to gnolang#2231

<!-- please provide a detailed description of the changes made in this
pull request. -->

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
- [ ] Added new benchmarks to [generated
graphs](https://gnoland.github.io/benchmarks), if any. More info
[here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
</details>
  • Loading branch information
linhpn99 authored and omarsy committed Jun 3, 2024
1 parent 0c4546b commit d7d32d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
2 changes: 0 additions & 2 deletions docs/gno-tooling/cli/gnokey.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ gnokey query {QUERY_PATH}
| Name | Type | Description |
|----------|-----------|------------------------------------------|
| `data` | UInt8 \[] | Queries data bytes. |
| `height` | Int64 | (not yet supported) Queries height. |
| `prove` | Boolean | (not yet supported) Proves query result. |


## Sign and Broadcast a Transaction
Expand Down
19 changes: 1 addition & 18 deletions tm2/pkg/crypto/keys/client/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,7 @@ import (
type QueryCfg struct {
RootCfg *BaseCfg

Data string
Height int64
Prove bool

Data string
Path string
}

Expand Down Expand Up @@ -45,20 +42,6 @@ func (c *QueryCfg) RegisterFlags(fs *flag.FlagSet) {
"",
"query data bytes",
)

fs.Int64Var(
&c.Height,
"height",
0,
"query height (not yet supported)",
)

fs.BoolVar(
&c.Prove,
"prove",
false,
"prove query result (not yet supported)",
)
}

func execQuery(cfg *QueryCfg, args []string, io commands.IO) error {
Expand Down

0 comments on commit d7d32d3

Please sign in to comment.