Skip to content

Commit

Permalink
Merge pull request #339 from bnb-chain/prepare_v0.26.2
Browse files Browse the repository at this point in the history
release: prepares for the release of v0.26.2
  • Loading branch information
unclezoro authored Apr 18, 2023
2 parents 60c3aa4 + d8b0080 commit cf7a97f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

##v0.26.2
* [cli] [\#336] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/336) fix: fix merkle proof invalid issue of cli query

##v0.26.1
* [sdk] [\#331] (https://github.com/bnb-chain/bnc-cosmos-sdk/pull/331) fix: fix the bug introduced by fixing the testnet syncing issue

Expand Down
10 changes: 5 additions & 5 deletions client/context/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (ctx CLIContext) QueryWithData(path string, data []byte) (res []byte, err e
// QueryStore performs a query from a Tendermint node with the provided key and
// store name.
func (ctx CLIContext) QueryStore(key cmn.HexBytes, storeName string) (res []byte, err error) {
return ctx.queryStore(key, storeName, "key")
return ctx.queryStore(key, storeName, "ics23-key")
}

// QuerySubspace performs a query from a Tendermint node with the provided
Expand Down Expand Up @@ -279,11 +279,11 @@ func parseQueryStorePath(path string) (storeName string, err error) {
paths := strings.SplitN(path[1:], "/", 3)
switch {
case len(paths) != 3:
return "", errors.New("expected format like /store/<storeName>/key")
return "", errors.New("expected format like /store/<storeName>/key|ics23-key")
case paths[0] != "store":
return "", errors.New("expected format like /store/<storeName>/key")
case paths[2] != "key":
return "", errors.New("expected format like /store/<storeName>/key")
return "", errors.New("expected format like /store/<storeName>/key|ics23-key")
case paths[2] != "key" && paths[2] != "ics23-key":
return "", errors.New("expected format like /store/<storeName>/key|ics23-key")
}

return paths[1], nil
Expand Down

0 comments on commit cf7a97f

Please sign in to comment.