Skip to content

Commit

Permalink
remove character unescaping in GetKey
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed Aug 24, 2023
1 parent de738a8 commit 7424f5c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modules/core/23-commitment/types/merkle.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ func (mp MerklePath) GetKey(i uint64) ([]byte, error) {
if i >= uint64(len(mp.KeyPath)) {
return nil, fmt.Errorf("index out of range. %d (index) >= %d (len)", i, len(mp.KeyPath))
}
key, err := url.PathUnescape(mp.KeyPath[i])
if err != nil {
return nil, err
}
return []byte(key), nil
return []byte(mp.KeyPath[i]), nil
}

// Empty returns true if the path is empty
Expand Down

0 comments on commit 7424f5c

Please sign in to comment.