Skip to content

Commit

Permalink
Quick fixes for IBC (cosmos#7302)
Browse files Browse the repository at this point in the history
* Fix page variable for querying consensus state of a node

* Add pointer where required

Co-authored-by: colin axnér <[email protected]>
  • Loading branch information
jackzampolin and colin-axner authored Sep 15, 2020
1 parent 1d462c6 commit a8990ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/ibc/02-client/client/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func QueryNodeConsensusState(clientCtx client.Context) (*ibctmtypes.ConsensusSta
return &ibctmtypes.ConsensusState{}, 0, err
}

page := 0
page := 1
count := 10_000

nextHeight := height + 1
Expand Down
2 changes: 1 addition & 1 deletion x/ibc/03-connection/client/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func queryClientConnectionsABCI(clientCtx client.Context, clientID string) (*typ
}

var paths []string
if err := clientCtx.LegacyAmino.UnmarshalBinaryBare(value, paths); err != nil {
if err := clientCtx.LegacyAmino.UnmarshalBinaryBare(value, &paths); err != nil {
return nil, err
}

Expand Down

0 comments on commit a8990ea

Please sign in to comment.