Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 0bb2e15

Browse files
authored
Merge pull request #429 from BitCannaGlobal/425-v4-include-upgrade-code-to-fix-consensus-params-error-at-devnet-1
FEATURE: New consensus params keeper using the wrong key again and move the data into the consensus params keeper with the right key
2 parents 5ba92b6 + 05f1713 commit 0bb2e15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/upgrades.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ func (app App) RegisterUpgradeHandlers() {
3232

3333
app.StickyFingers(upgradeInfo)
3434
}
35+
3536
func (app *App) StickyFingers(_ upgradetypes.Plan) {
3637
planName := "stickyfingers"
3738
app.UpgradeKeeper.SetUpgradeHandler(
@@ -55,11 +56,13 @@ func (app *App) StickyFingers(_ upgradetypes.Plan) {
5556
params, err := consensuskeeper.ParamsStore.Get(ctx)
5657
app.Logger().Info("Getting the params into the Consensus params keeper...")
5758
if err != nil {
59+
app.Logger().Error("Error getting the params into the Consensus params keeper...")
5860
return nil, err
5961
}
6062
err = app.ConsensusParamsKeeper.ParamsStore.Set(ctx, params)
6163
app.Logger().Info("Setting the params into the Consensus params keeper...")
6264
if err != nil {
65+
app.Logger().Error("Error setting the params into the Consensus params keeper...")
6366
return nil, err
6467
}
6568
versionMap, err := app.ModuleManager.RunMigrations(ctx, app.Configurator(), fromVM)

0 commit comments

Comments
 (0)