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
  • Loading branch information
GNaD13 committed Feb 28, 2023
1 parent fa10438 commit ae27157
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 ae27157

Please sign in to comment.