diff --git a/app/upgrades/testnet/fixstrays/store.go b/app/upgrades/testnet/fixstrays/store.go index 0061b6aa1..60f654310 100644 --- a/app/upgrades/testnet/fixstrays/store.go +++ b/app/upgrades/testnet/fixstrays/store.go @@ -13,7 +13,10 @@ import ( func MigrateStore(ctx sdk.Context, paramsSubspace *paramstypes.Subspace) error { ctx.Logger().Error("MIGRATING STORAGE STORE!") // Set the module params - params := types.NewParams() + + var params types.Params + + paramsSubspace.GetParamSet(ctx, ¶ms) params.ProofWindow = 50 diff --git a/app/upgrades/testnet/fixstrays/upgrades.go b/app/upgrades/testnet/fixstrays/upgrades.go index bd9c05879..f50283bb4 100644 --- a/app/upgrades/testnet/fixstrays/upgrades.go +++ b/app/upgrades/testnet/fixstrays/upgrades.go @@ -37,7 +37,7 @@ func (u *Upgrade) Name() string { // Handler implements upgrades.Upgrade func (u *Upgrade) Handler() upgradetypes.UpgradeHandler { return func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) { - if types.IsTestnet(ctx.ChainID()) { + if types.IsTestnet(ctx.ChainID()) || ctx.ChainID() == "test" { fromVM[storeagemoduletypes.ModuleName] = 2 diff --git a/scripts/upgrade-test.sh b/scripts/upgrade-test.sh index b20f4df56..f3538bcab 100755 --- a/scripts/upgrade-test.sh +++ b/scripts/upgrade-test.sh @@ -1,6 +1,6 @@ #!/bin/bash -OLD_VERSION=1.2.0-beta +OLD_VERSION=23.01-beta UPGRADE_HEIGHT=20 HOME=mytestnet ROOT=$(pwd)