Skip to content

Commit

Permalink
refactor: expsoe SetAppVersion on the upgrade keeper to allow overwri…
Browse files Browse the repository at this point in the history
…ting during the upgrade (#244)
  • Loading branch information
p0mvn authored May 24, 2022
1 parent a68d28e commit 9a05fa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 5 additions & 0 deletions x/upgrade/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ func (k Keeper) SetModuleVersionMap(ctx sdk.Context, vm module.VersionMap) {
}
}

// SetAppVersion sets app version to version
func (k Keeper) SetAppVersion(ctx sdk.Context, version uint64) error {
return k.versionManager.SetAppVersion(ctx, version)
}

// GetModuleVersionMap returns a map of key module name and value module consensus version
// as defined in ADR-041.
func (k Keeper) GetModuleVersionMap(ctx sdk.Context) module.VersionMap {
Expand Down
8 changes: 0 additions & 8 deletions x/upgrade/keeper/util_test.go

This file was deleted.

0 comments on commit 9a05fa0

Please sign in to comment.