Skip to content

Commit

Permalink
Merge PR: fix height (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsFunny authored Jul 30, 2022
1 parent 77586b1 commit c4811e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/cosmos-sdk/store/iavl/iavl_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ func (st *Store) Query(req abci.RequestQuery) (res abci.ResponseQuery) {
// store the height we chose in the response, with 0 being changed to the
// latest height
res.Height = getHeight(st.tree, req)
tree, err := st.tree.GetImmutable(req.Height)
tree, err := st.tree.GetImmutable(res.Height)
if err != nil {
return sdkerrors.QueryResult(sdkerrors.Wrapf(iavl.ErrVersionDoesNotExist, "request height %d", req.Height))
}
Expand Down

0 comments on commit c4811e4

Please sign in to comment.