From 331c660cb57dbeb822ab4a6ff80e33b7953c9fc4 Mon Sep 17 00:00:00 2001 From: Dongri Jin Date: Wed, 31 Jan 2024 10:47:11 +0900 Subject: [PATCH] Fix heightBuf Signed-off-by: Dongri Jin --- modules/light-clients/xx-mock/types/client_state.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/light-clients/xx-mock/types/client_state.go b/modules/light-clients/xx-mock/types/client_state.go index 27ea67c..af61b02 100644 --- a/modules/light-clients/xx-mock/types/client_state.go +++ b/modules/light-clients/xx-mock/types/client_state.go @@ -120,8 +120,8 @@ func (cs ClientState) VerifyMembership( revisionHeight := height.GetRevisionHeight() heightBuf := make([]byte, 16) - binary.LittleEndian.PutUint64(heightBuf[:8], revisionHeight) - binary.LittleEndian.PutUint64(heightBuf[8:], revisionNumber) + binary.BigEndian.PutUint64(heightBuf[:8], revisionNumber) + binary.BigEndian.PutUint64(heightBuf[8:], revisionHeight) merklePath := path.(commitmenttypes.MerklePath) mPrefix, err := merklePath.GetKey(0)