Skip to content

Commit

Permalink
Merge pull request #222 from terra-money/fix/wasm-home-dir
Browse files Browse the repository at this point in the history
fix: update wasm home dir
  • Loading branch information
emidev98 authored Nov 27, 2023
2 parents ec11083 + ac0920d commit 12f9c69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ func NewTerraApp(
cdc,
appOpts,
app.GetWasmOpts(appOpts),
homePath,
)
app.keys = app.Keepers.GetKVStoreKey()
app.tkeys = app.Keepers.GetTransientStoreKey()
Expand Down
3 changes: 1 addition & 2 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 @@ -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 12f9c69

Please sign in to comment.