Skip to content

Commit 8b754f2

Browse files
Apply suggestions from code review
Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
1 parent 2daa515 commit 8b754f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/migrations/v3-to-v4.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ The `RegisterInterchainAccount` API has been modified to include an additional `
3232
Consumers of the `RegisterInterchainAccount` are now expected to build the appropriate JSON encoded version string themselves and pass it accordingly.
3333
This should be constructed within the interchain accounts authentication module which leverages the APIs exposed via the interchain accounts `controllerKeeper`.
3434

35-
The following code snippet illustrates how to construct an appropriate interchain accounts Metadata and encode it as a JSON bytestring:
35+
The following code snippet illustrates how to construct an appropriate interchain accounts `Metadata` and encode it as a JSON bytestring:
3636

3737
```go
3838
icaMetadata := icatypes.Metadata{
@@ -45,15 +45,15 @@ icaMetadata := icatypes.Metadata{
4545

4646
appVersion, err := icatypes.ModuleCdc.MarshalJSON(&icaMetadata)
4747
if err != nil {
48-
retutn err
48+
return err
4949
}
5050

5151
if err := k.icaControllerKeeper.RegisterInterchainAccount(ctx, msg.ConnectionId, msg.Owner, string(appVersion)); err != nil {
5252
return err
5353
}
5454
```
5555

56-
Similarly, if the application stack is configured to route through ICS29 fee middleware and a fee enabled channel is desired, construct the appropriate ICS29 Metadata type:
56+
Similarly, if the application stack is configured to route through ICS29 fee middleware and a fee enabled channel is desired, construct the appropriate ICS29 `Metadata` type:
5757

5858
```go
5959
icaMetadata := icatypes.Metadata{

0 commit comments

Comments
 (0)