Skip to content

Commit

Permalink
chore: correct channel query url path, correct errors numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
damiannolan committed Oct 23, 2024
1 parent fe9b9f6 commit 58ae3ac
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 36 deletions.
4 changes: 2 additions & 2 deletions modules/core/04-channel/v2/types/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ var (
ErrInvalidPacket = errorsmod.Register(SubModuleName, 4, "invalid packet")
ErrInvalidPayload = errorsmod.Register(SubModuleName, 5, "invalid payload")
ErrSequenceSendNotFound = errorsmod.Register(SubModuleName, 6, "sequence send not found")
ErrInvalidAcknowledgement = errorsmod.Register(SubModuleName, 8, "invalid acknowledgement")
ErrPacketCommitmentNotFound = errorsmod.Register(SubModuleName, 9, "packet commitment not found")
ErrInvalidAcknowledgement = errorsmod.Register(SubModuleName, 7, "invalid acknowledgement")
ErrPacketCommitmentNotFound = errorsmod.Register(SubModuleName, 8, "packet commitment not found")
)
63 changes: 31 additions & 32 deletions modules/core/04-channel/v2/types/query.pb.go

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

2 changes: 1 addition & 1 deletion modules/core/04-channel/v2/types/query.pb.gw.go

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

2 changes: 1 addition & 1 deletion proto/ibc/core/channel/v2/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import "gogoproto/gogo.proto";
service Query {
// Channel queries the counterparty of an IBC client.
rpc Channel(QueryChannelRequest) returns (QueryChannelResponse) {
option (google.api.http).get = "/ibc/core/channel/v2/channel/{channel_id}";
option (google.api.http).get = "/ibc/core/channel/v2/channels/{channel_id}";
}

// PacketCommitment queries a stored packet commitment hash.
Expand Down

0 comments on commit 58ae3ac

Please sign in to comment.