Skip to content

Commit

Permalink
Fix: invalid URL escape error during merkle proof verification
Browse files Browse the repository at this point in the history
  • Loading branch information
pr0n00gler committed Nov 9, 2022
1 parent d032589 commit c0955ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/interchainqueries/keeper/msg_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package keeper
import (
"bytes"
"context"
"net/url"
"strconv"
"time"

Expand Down Expand Up @@ -221,7 +222,7 @@ func (k msgServer) SubmitQueryResult(goCtx context.Context, msg *types.MsgSubmit
return nil, sdkerrors.Wrapf(types.ErrInvalidSubmittedResult, "KV path from result is not equal to registered query storage prefix: %v != %v", result.StoragePrefix, query.Keys[index].Path)
}

path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, string(result.Key))
path := ibccommitmenttypes.NewMerklePath(result.StoragePrefix, url.PathEscape(string(result.Key)))

// identify what kind proofs (non-existence proof always has *ics23.CommitmentProof_Nonexist as the first item) we got
// and call corresponding method to verify it
Expand Down

0 comments on commit c0955ea

Please sign in to comment.