Skip to content

Commit

Permalink
Merge pull request #223 from terra-money/release/v2.7
Browse files Browse the repository at this point in the history
bump: fix for wasm folder and capability
  • Loading branch information
emidev98 authored Nov 28, 2023
2 parents e029d6b + 7b25ba1 commit 7406be6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func NewTerraApp(
cdc,
appOpts,
app.GetWasmOpts(appOpts),
homePath,
)
app.keys = app.Keepers.GetKVStoreKey()
app.tkeys = app.Keepers.GetTransientStoreKey()
Expand Down
7 changes: 3 additions & 4 deletions app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
"github.com/spf13/cast"

"github.com/cosmos/cosmos-sdk/baseapp"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/server"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -189,6 +188,7 @@ func NewTerraAppKeepers(
cdc *codec.LegacyAmino,
appOpts servertypes.AppOptions,
wasmOpts []wasmkeeper.Option,
homePath string,
) (keepers TerraAppKeepers) {
// Set keys KVStoreKey, TransientStoreKey, MemoryStoreKey
keepers.GenerateKeys()
Expand Down Expand Up @@ -220,8 +220,8 @@ func NewTerraAppKeepers(
keepers.ScopedTransferKeeper = keepers.CapabilityKeeper.ScopeToModule(ibctransfertypes.ModuleName)
keepers.ScopedICAControllerKeeper = keepers.CapabilityKeeper.ScopeToModule(icacontrollertypes.SubModuleName)
keepers.ScopedICAHostKeeper = keepers.CapabilityKeeper.ScopeToModule(icahosttypes.SubModuleName)
keepers.scopedWasmKeeper = keepers.CapabilityKeeper.ScopeToModule(icqtypes.ModuleName)
keepers.ScopedICQKeeper = keepers.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName)
keepers.scopedWasmKeeper = keepers.CapabilityKeeper.ScopeToModule(wasmtypes.ModuleName)
keepers.ScopedICQKeeper = keepers.CapabilityKeeper.ScopeToModule(icqtypes.ModuleName)

keepers.AccountKeeper = authkeeper.NewAccountKeeper(
appCodec,
Expand Down Expand Up @@ -284,7 +284,6 @@ func NewTerraAppKeepers(
for _, h := range cast.ToIntSlice(appOpts.Get(server.FlagUnsafeSkipUpgrades)) {
skipUpgradeHeights[int64(h)] = true
}
homePath := cast.ToString(appOpts.Get(flags.FlagHome))
keepers.UpgradeKeeper = upgradekeeper.NewKeeper(
skipUpgradeHeights,
keys[upgradetypes.StoreKey],
Expand Down

0 comments on commit 7406be6

Please sign in to comment.