Skip to content

Commit

Permalink
fix: actually run the upgrade handler for test
Browse files Browse the repository at this point in the history
  • Loading branch information
arirubinstein authored and mergify[bot] committed Oct 14, 2022
1 parent 131f0db commit 142b769
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions golang/cosmos/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,9 @@ func NewAgoricApp(
panic(fmt.Sprintf("failed to read upgrade info from disk %s", err))
}

if upgradeInfo.Name == upgradeName && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
if (upgradeInfo.Name == upgradeName || upgradeInfo.Name == upgradeNameTest) && !app.UpgradeKeeper.IsSkipHeight(upgradeInfo.Height) {
storeUpgrades := store.StoreUpgrades{
Added: []string{swingsettypes.StoreKey, vbanktypes.StoreKey, vibc.StoreKey, vstorage.StoreKey},
Added: []string{swingsettypes.StoreKey, vbanktypes.StoreKey, vibc.StoreKey, vstorage.StoreKey, lien.StoreKey},
}

// configure store loader that checks if version == upgradeHeight and applies store upgrades
Expand Down
2 changes: 1 addition & 1 deletion golang/cosmos/app/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ package gaia

const (
upgradeName = "agoric-upgrade-8"
upgradeNameTest = "agoric-test-8"
upgradeNameTest = "agorictest-upgrade-8"
)

0 comments on commit 142b769

Please sign in to comment.