From ac3a802e7dd8a2ac47a1c119f5614e76e96e643a Mon Sep 17 00:00:00 2001 From: sunspirit <167175638+linhpn99@users.noreply.github.com> Date: Wed, 29 May 2024 18:54:14 +0700 Subject: [PATCH] fix(gnokey): remove height and prove flags in `query` (#2234) relate to https://github.com/gnolang/gno/issues/2231
Contributors' checklist... - [ ] 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).
--- docs/gno-tooling/cli/gnokey.md | 2 -- tm2/pkg/crypto/keys/client/query.go | 19 +------------------ 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/docs/gno-tooling/cli/gnokey.md b/docs/gno-tooling/cli/gnokey.md index 77c25563fdd..9ea51546864 100644 --- a/docs/gno-tooling/cli/gnokey.md +++ b/docs/gno-tooling/cli/gnokey.md @@ -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 diff --git a/tm2/pkg/crypto/keys/client/query.go b/tm2/pkg/crypto/keys/client/query.go index f4b65adebc0..3278d0ea0ea 100644 --- a/tm2/pkg/crypto/keys/client/query.go +++ b/tm2/pkg/crypto/keys/client/query.go @@ -13,10 +13,7 @@ import ( type QueryCfg struct { RootCfg *BaseCfg - Data string - Height int64 - Prove bool - + Data string Path string } @@ -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 {