Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update wasm home dir #222

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading