Skip to content

Commit

Permalink
imp: add port id into msg register interchain account response (#3204)
Browse files Browse the repository at this point in the history
(cherry picked from commit ae27157)
  • Loading branch information
GNaD13 authored and mergify[bot] committed Mar 2, 2023
1 parent 2b69d18 commit cda6c77
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 36 deletions.
3 changes: 2 additions & 1 deletion docs/apps/interchain-accounts/messages.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ If the `Version` string is omitted, the controller submodule will construct a de
```go
type MsgRegisterInterchainAccountResponse struct {
ChannelID string
PortId string
}
```

The `ChannelID` is returned in the message response.
The `ChannelID` and `PortID` are returned in the message response.

## `MsgSendTx`

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func (s msgServer) RegisterInterchainAccount(goCtx context.Context, msg *types.M

return &types.MsgRegisterInterchainAccountResponse{
ChannelId: channelID,
PortId: portID,
}, nil
}

Expand Down
122 changes: 87 additions & 35 deletions modules/apps/27-interchain-accounts/controller/types/tx.pb.go

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

Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ message MsgRegisterInterchainAccount {
// MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
message MsgRegisterInterchainAccountResponse {
string channel_id = 1 [(gogoproto.moretags) = "yaml:\"channel_id\""];
string port_id = 2 [(gogoproto.moretags) = "yaml:\"port_id\""];
}

// MsgSendTx defines the payload for Msg/SendTx
Expand Down

0 comments on commit cda6c77

Please sign in to comment.