Skip to content

Commit

Permalink
fixing upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Jan 31, 2023
1 parent 3579d04 commit 40ac17d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion app/upgrades/testnet/fixstrays/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, &params)

params.ProofWindow = 50

Expand Down
2 changes: 1 addition & 1 deletion app/upgrades/testnet/fixstrays/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade-test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

OLD_VERSION=1.2.0-beta
OLD_VERSION=23.01-beta
UPGRADE_HEIGHT=20
HOME=mytestnet
ROOT=$(pwd)
Expand Down

0 comments on commit 40ac17d

Please sign in to comment.