Skip to content

Commit

Permalink
Minor tweak to upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Oct 9, 2024
1 parent 4299122 commit f690389
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 2 additions & 0 deletions app/upgrades/v8/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ This upgrade moves Sommelier to major version 8.

## Summary of changes

* Add the addresses module for mapping cosmos/evm addresses
* Update the cellarfees module to start fee auctions based on the accrued USD value of a particular denom
* Update the auction module to allow a portion of SOMM proceeds earned by auctions to be burned
* Upgrade the gravity module to v5
9 changes: 2 additions & 7 deletions app/upgrades/v8/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@ func CreateUpgradeHandler(
configurator module.Configurator,
) upgradetypes.UpgradeHandler {
return func(ctx sdk.Context, plan upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) {
ctx.Logger().Info("v2 upgrade: entering handler and running migrations")
ctx.Logger().Info("v8 upgrade: entering handler and running migrations")

fromVM := make(map[string]uint64)
for moduleName, m := range mm.Modules {
fromVM[moduleName] = m.(module.HasConsensusVersion).ConsensusVersion()
}

return mm.RunMigrations(ctx, configurator, fromVM)
return mm.RunMigrations(ctx, configurator, vm)
}
}

0 comments on commit f690389

Please sign in to comment.