Skip to content

Commit

Permalink
ibc : replace strings.Contains to bytes.Contains (#8574)
Browse files Browse the repository at this point in the history
Co-authored-by: SaReN <[email protected]>
Co-authored-by: Federico Kunze <[email protected]>
  • Loading branch information
3 people authored Feb 12, 2021
1 parent fc6c678 commit e4b2d75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/ibc/core/02-client/keeper/grpc_query.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package keeper

import (
"bytes"
"context"
"fmt"
"sort"
Expand Down Expand Up @@ -159,7 +160,7 @@ func (q Keeper) ConsensusStates(c context.Context, req *types.QueryConsensusStat

pageRes, err := query.FilteredPaginate(store, req.Pagination, func(key, value []byte, accumulate bool) (bool, error) {
// filter any metadata stored under consensus state key
if strings.Contains(string(key), "/") {
if bytes.Contains(key, []byte("/")) {
return false, nil
}

Expand Down

0 comments on commit e4b2d75

Please sign in to comment.