Upgrading a blockchain to use Ignite CLI v0.22.0
Ignite CLI v0.22.2 changed the GitHub username from "ignite-hq" to "ignite", which means the imports must be fixed to reflect this change.
In your
go.modfile find the require line for Ignite CLI that starts withgithub.com/ignite-hq/cliand is followed by a version. It looks something likegithub.com/ignite-hq/cli v0.22.0, and replace it bygithub.com/ignite/cli v0.22.2.Make a bulk find and replace in the import statements for
github.com/ignite-hq/clito be replaced bygithub.com/ignite/cli.Finally run
go mod tidyand ensure there's no mention ifignite-hq/cliin yourgo.sumfile.
This update includes an upgrade to the ibc-go packages. Please make the according changes:
Upgrade your IBC version to v3.
Search for
github.com/cosmos/ibc-go/v2in the import statements of your.gofiles and replacev2in the end withv3Open your
app.go,Update your transfer keeper by adding another
app.IBCKeeper.ChannelKeeperas an argument afterapp.IBCKeeper.ChannelKeeperDefine
var transferIBCModule = transfer.NewIBCModule(app.TransferKeeper)in yourNew()func, and update your existent IBC router to use it:ibcRouter.AddRoute(ibctransfertypes.ModuleName, transferIBCModule)
Open your
go.modand change the IBC line withgithub.com/cosmos/ibc-go/v3 v3.0.0