Skip to content

Commit

Permalink
fix(upgrade): add recovery store on store upgrade (backport #1257) (#…
Browse files Browse the repository at this point in the history
…1261)

* fix(upgrade): add recovery store on store upgrade (#1257)

* fix(upgrade): add recovery store on store upgrade

* fix(upgrade): add changelog entry

(cherry picked from commit 2f9b1da)

# Conflicts:
#	CHANGELOG.md

* conflict

Co-authored-by: Tomas Guerra <54514587+GAtom22@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 20, 2023
1 parent ab0b5c6 commit a459728
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Ref: https://keepachangelog.com/en/1.0.0/

### Bug Fixes

- (upgrade) [#1257](https://github.com/evmos/evmos/pull/1257) Add `recovery` module store to `StoreUpgrades`
- (upgrade) [#1252](https://github.com/evmos/evmos/pull/1252) Add account number and sequence to migrated IBC transfer escrow accounts.
- (upgrade) [#1242](https://github.com/evmos/evmos/pull/1242) Fix Ethermint params upgrade
- (ibc) [#1156](https://github.com/evmos/evmos/pull/1156) Migrate IBC transfer escrow accounts to `ModuleAccount` type.

Expand Down
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1222,8 +1222,9 @@ func (app *Evmos) setupUpgradeHandlers() {
// no store upgrades in v10
case v11.UpgradeName:
// add ica host submodule in v11
// initialize recovery store
storeUpgrades = &storetypes.StoreUpgrades{
Added: []string{icahosttypes.SubModuleName},
Added: []string{icahosttypes.SubModuleName, recoverytypes.StoreKey},
}
}

Expand Down

0 comments on commit a459728

Please sign in to comment.