Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dang/add port id into msg register interchain account response #3204

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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