diff --git a/app/app.go b/app/app.go index 99e3fa3c..a1a8c37a 100644 --- a/app/app.go +++ b/app/app.go @@ -491,7 +491,7 @@ func (app *OnomyApp) setupUpgradeHandlers() { case v2_1_0.Name: storeUpgrades = &storetypes.StoreUpgrades{ - Added: []string{"vaults", "oracel", "auction", "psm"}, + Added: []string{"vaults", "oracle", "auction", "psm"}, } default: // no store upgrades. diff --git a/app/upgrades/v2.1.0/upgrade.go b/app/upgrades/v2.1.0/upgrade.go index c249a18b..d55b5ad8 100644 --- a/app/upgrades/v2.1.0/upgrade.go +++ b/app/upgrades/v2.1.0/upgrade.go @@ -6,6 +6,7 @@ import ( upgradetypes "cosmossdk.io/x/upgrade/types" "github.com/cosmos/cosmos-sdk/types/module" + sdk "github.com/cosmos/cosmos-sdk/types" "github.com/onomyprotocol/onomy/app/keepers" ) @@ -17,8 +18,12 @@ func CreateUpgradeHandler( ) upgradetypes.UpgradeHandler { return func(c context.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { - // ctx := sdk.UnwrapSDKContext(c) - + ctx := sdk.UnwrapSDKContext(c) + collectionsConsensus(ctx, keepers) return vm, nil } } + +func collectionsConsensus(ctx sdk.Context, keepers *keepers.AppKeepers) { + keepers.ConsensusParamsKeeper.ParamsStore.Set(ctx, ctx.ConsensusParams()) +}