Skip to content

Commit

Permalink
Fix heightBuf
Browse files Browse the repository at this point in the history
Signed-off-by: Dongri Jin <[email protected]>
  • Loading branch information
dongrie committed Jan 31, 2024
1 parent 28f2d67 commit 331c660
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/light-clients/xx-mock/types/client_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 331c660

Please sign in to comment.