Skip to content

Commit

Permalink
fix: update wasm home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
javiersuweijie committed Nov 27, 2023
1 parent ec11083 commit ac0920d
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 ac0920d

Please sign in to comment.