Skip to content

Commit

Permalink
V5.1.0 upgrade (sei-protocol#1582)
Browse files Browse the repository at this point in the history
* Add v5.1.0 upgrade

* Add todo

* remove todo
  • Loading branch information
udpatil authored Apr 25, 2024
1 parent 3dd9e13 commit 3c6e9f6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,15 @@ func (app *App) SetStoreUpgradeHandlers() {
// configure store loader that checks if version == upgradeHeight and applies store upgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
}

if upgradeInfo.Name == "v5.1.0" && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := storetypes.StoreUpgrades{
Added: []string{evmtypes.StoreKey},
}

// configure store loader that checks if version == upgradeHeight and applies store upgrades
app.SetStoreLoader(upgradetypes.UpgradeStoreLoader(upgradeInfo.Height, &storeUpgrades))
}
}

// AppName returns the name of the App
Expand Down
1 change: 1 addition & 0 deletions app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var upgradesList = []string{
"v4.2.0-evm-devnet",
"v5.0.0",
"v5.0.1",
"v5.1.0",
}

// if there is an override list, use that instead, for integration tests
Expand Down

0 comments on commit 3c6e9f6

Please sign in to comment.