Skip to content

Commit

Permalink
fix: allow value with slashes in URL template (#3045)
Browse files Browse the repository at this point in the history
(cherry picked from commit 002b266)

# Conflicts:
#	modules/apps/transfer/types/query.pb.go
#	modules/apps/transfer/types/query.pb.gw.go
  • Loading branch information
Carlos Rodriguez authored and mergify[bot] committed Oct 15, 2023
1 parent cfb11af commit b410878
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 2 deletions.
49 changes: 49 additions & 0 deletions modules/apps/transfer/types/query.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions modules/apps/transfer/types/query.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions proto/ibc/applications/transfer/v1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ option go_package = "github.com/cosmos/ibc-go/v6/modules/apps/transfer/types";
service Query {
// DenomTrace queries a denomination trace information.
rpc DenomTrace(QueryDenomTraceRequest) returns (QueryDenomTraceResponse) {
option (google.api.http).get = "/ibc/apps/transfer/v1/denom_traces/{hash}";
option (google.api.http).get = "/ibc/apps/transfer/v1/denom_traces/{hash=**}";
}

// DenomTraces queries all denomination traces.
Expand All @@ -28,7 +28,7 @@ service Query {

// DenomHash queries a denomination hash information.
rpc DenomHash(QueryDenomHashRequest) returns (QueryDenomHashResponse) {
option (google.api.http).get = "/ibc/apps/transfer/v1/denom_hashes/{trace}";
option (google.api.http).get = "/ibc/apps/transfer/v1/denom_hashes/{trace=**}";
}

// EscrowAddress returns the escrow address for a particular port and channel id.
Expand Down

0 comments on commit b410878

Please sign in to comment.