From ba2799ec6deccbe17094a4478cdf0228f1f668e2 Mon Sep 17 00:00:00 2001 From: Jun Kimura Date: Mon, 19 Oct 2020 22:35:52 +0900 Subject: [PATCH] fix sequence checks in solomachine (#7586) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> --- x/ibc/light-clients/06-solomachine/types/client_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ibc/light-clients/06-solomachine/types/client_state.go b/x/ibc/light-clients/06-solomachine/types/client_state.go index 76371f85d..401235f9a 100644 --- a/x/ibc/light-clients/06-solomachine/types/client_state.go +++ b/x/ibc/light-clients/06-solomachine/types/client_state.go @@ -439,10 +439,10 @@ func produceVerificationArgs( } latestSequence := cs.GetLatestHeight().GetVersionHeight() - if latestSequence < sequence { + if latestSequence != sequence { return nil, 0, 0, sdkerrors.Wrapf( sdkerrors.ErrInvalidHeight, - "client state sequence < proof sequence (%d < %d)", latestSequence, sequence, + "client state sequence != proof sequence (%d != %d)", latestSequence, sequence, ) }