From a8990eab71373356dc05851c70ee4716f4f74357 Mon Sep 17 00:00:00 2001 From: Jack Zampolin Date: Tue, 15 Sep 2020 02:21:42 -0700 Subject: [PATCH] Quick fixes for IBC (#7302) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix page variable for querying consensus state of a node * Add pointer where required Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> --- x/ibc/02-client/client/utils/utils.go | 2 +- x/ibc/03-connection/client/utils/utils.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ibc/02-client/client/utils/utils.go b/x/ibc/02-client/client/utils/utils.go index fb3c060462..7e453f0a5b 100644 --- a/x/ibc/02-client/client/utils/utils.go +++ b/x/ibc/02-client/client/utils/utils.go @@ -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 diff --git a/x/ibc/03-connection/client/utils/utils.go b/x/ibc/03-connection/client/utils/utils.go index 3e8eb823da..49db5c3041 100644 --- a/x/ibc/03-connection/client/utils/utils.go +++ b/x/ibc/03-connection/client/utils/utils.go @@ -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 }