Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(gnokey): remove height and prove flags in query #2234

Merged
merged 9 commits into from
May 29, 2024
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
Loading