From dc5efc14ce42e22f70a16988deb4b4015631fc33 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 22:26:44 +0200 Subject: [PATCH] fix!: register provider v3 to v4 migration handler (backport #1773) (#1779) fix!: register provider v3 to v4 migration handler (#1773) * fix!: register provider v3 to v4 migration handler * docs: update UPGRADING.md (cherry picked from commit 3189221414e61c5ce7460accd44afd01b8627b07) Co-authored-by: MSalopek --- UPGRADING.md | 2 +- x/ccv/provider/module.go | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/UPGRADING.md b/UPGRADING.md index d4632cba79..4eb4540599 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -2,7 +2,7 @@ This guide provides instructions for upgrading to specific versions of Replicated Security. -## [v4.1.x](https://github.com/cosmos/interchain-security/releases/tag/v4.1.0-rc1) and [v4.1.x-lsm](https://github.com/cosmos/interchain-security/releases/tag/v4.1.0-lsm-rc1) +## [v4.1.x](https://github.com/cosmos/interchain-security/releases/tag/v4.1.0-rc2) and [v4.1.x-lsm](https://github.com/cosmos/interchain-security/releases/tag/v4.1.0-lsm-rc2) ### Provider diff --git a/x/ccv/provider/module.go b/x/ccv/provider/module.go index 6f7ec08f7b..4cdeac6af7 100644 --- a/x/ccv/provider/module.go +++ b/x/ccv/provider/module.go @@ -112,6 +112,9 @@ func (am AppModule) RegisterServices(cfg module.Configurator) { if err := cfg.RegisterMigration(providertypes.ModuleName, 2, m.Migrate2to3); err != nil { panic(fmt.Sprintf("failed to register migrator for %s: %s", providertypes.ModuleName, err)) } + if err := cfg.RegisterMigration(providertypes.ModuleName, 3, m.Migrate3to4); err != nil { + panic(fmt.Sprintf("failed to register migrator for %s: %s", providertypes.ModuleName, err)) + } } // InitGenesis performs genesis initialization for the provider module. It returns no validator updates.