Skip to content

Commit c625f47

Browse files
authored
docs(UPGRADING.md): improve v0.50.x release notes (#25063)
1 parent cd4a241 commit c625f47

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

UPGRADING.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,25 @@ For ante handler construction via `ante.NewAnteHandler`, the field `ante.Handler
429429

430430
#### `x/capability`
431431

432-
Capability has been moved to [IBC Go](https://github.com/cosmos/ibc-go). IBC v8 will contain the necessary changes to incorporate the new module location.
432+
The capability module has been moved to [cosmos/ibc-go](https://github.com/cosmos/ibc-go). IBC v8 will contain the necessary changes to incorporate the new module location. In your `app.go`, you must import the capability module from the new location:
433+
434+
```diff
435+
+ "github.com/cosmos/ibc-go/modules/capability"
436+
+ capabilitykeeper "github.com/cosmos/ibc-go/modules/capability/keeper"
437+
+ capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types"
438+
- "github.com/cosmos/cosmos-sdk/x/capability/types"
439+
- capabilitykeeper "github.com/cosmos/cosmos-sdk/x/capability/keeper"
440+
- capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
441+
```
442+
443+
Similar to previous versions, your module manager must include the capability module.
444+
445+
```go
446+
app.ModuleManager = module.NewManager(
447+
capability.NewAppModule(encodingConfig.Codec, *app.CapabilityKeeper, true),
448+
// remaining modules
449+
)
450+
```
433451

434452
#### `x/genutil`
435453

0 commit comments

Comments
 (0)