Skip to content

Commit

Permalink
update upgrade handler
Browse files Browse the repository at this point in the history
  • Loading branch information
catShaark committed Oct 25, 2024
1 parent 78d395f commit 45a9c2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
upgradetypes "cosmossdk.io/x/upgrade/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
evmtypes "github.com/evmos/os/x/evm/types"
)

// BaseAppParamManager defines an interrace that BaseApp is expected to fullfil
Expand Down Expand Up @@ -55,7 +56,7 @@ func (app *RealioNetwork) setupUpgradeHandlers() {
app.ParamsKeeper,
app.ConsensusParamsKeeper,
*app.IBCKeeper,
app.CommitMultiStore().GetKVStore(app.keys["evm"]),
app.CommitMultiStore().GetKVStore(app.keys[evmtypes.StoreKey]),
),
)

Expand Down
1 change: 1 addition & 0 deletions app/upgrades/v2/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func CreateUpgradeHandler(
return nil, err
}

delete(vm, evmtypes.ModuleName)
return mm.RunMigrations(ctx, configurator, vm)
}
}
Expand Down

0 comments on commit 45a9c2b

Please sign in to comment.