Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
DongLieu committed Oct 15, 2024
1 parent 7b09011 commit fa5591f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 7 additions & 2 deletions app/upgrades/v2.1.0/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand All @@ -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())
}

0 comments on commit fa5591f

Please sign in to comment.