Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

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) (#245)

(cherry picked from commit 9a05fa0)

Co-authored-by: Roman <[email protected]>
  • Loading branch information
mergify[bot] and p0mvn authored May 24, 2022
1 parent 6afaa2e commit 830f277
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 830f277

Please sign in to comment.