diff --git a/app/app.go b/app/app.go index 96e73695..caf2bb9b 100644 --- a/app/app.go +++ b/app/app.go @@ -1083,6 +1083,7 @@ func RegisterSwaggerAPI(rtr *mux.Router) { func (app *MigalooApp) setupUpgradeHandlers(cfg module.Configurator) { for _, upgrade := range Upgrades { upgradeInfo, err := app.UpgradeKeeper.ReadUpgradeInfoFromDisk() + upgrade := upgrade if err != nil { panic(fmt.Sprintf("failed to read upgrade info from disk %s", err)) }