Skip to content

Commit

Permalink
fix!: register provider v3 to v4 migration handler (backport #1773) (#…
Browse files Browse the repository at this point in the history
…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 3189221)

Co-authored-by: MSalopek <[email protected]>
  • Loading branch information
mergify[bot] and MSalopek authored Apr 8, 2024
1 parent 6661e95 commit dc5efc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 3 additions & 0 deletions x/ccv/provider/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dc5efc1

Please sign in to comment.