Skip to content

Commit

Permalink
fixes of params
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-lahoda committed Dec 29, 2023
1 parent 046861f commit d19d522
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions app/helpers/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"testing"
"time"

"github.com/CosmWasm/wasmd/x/wasm"
composable "github.com/notional-labs/composable/v6/app"
"github.com/stretchr/testify/require"

Expand All @@ -29,6 +28,7 @@ import (
tmproto "github.com/cometbft/cometbft/proto/tendermint/types"
tmtypes "github.com/cometbft/cometbft/types"

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
"github.com/cosmos/ibc-go/v7/testing/mock"
)

Expand Down Expand Up @@ -89,7 +89,7 @@ func Setup(t *testing.T, isCheckTx bool, invCheckPeriod uint) *composable.Compos
return app
}

func setup(withGenesis bool, invCheckPeriod uint, opts ...wasm.Option) (*composable.ComposableApp, composable.GenesisState) {
func setup(withGenesis bool, invCheckPeriod uint, opts ...wasmkeeper.Option) (*composable.ComposableApp, composable.GenesisState) {
db := dbm.NewMemDB()
encCdc := composable.MakeEncodingConfig()
app := composable.NewComposableApp(
Expand Down
3 changes: 2 additions & 1 deletion app/keepers/keepers.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers(
appKeepers.BankKeeper,
appKeepers.StakingKeeper,
appKeepers.DistrKeeper,
authtypes.FeeCollectorName,
)

appKeepers.BankKeeper.RegisterKeepers(appKeepers.AllianceKeeper, appKeepers.StakingKeeper)
Expand All @@ -228,7 +229,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers(

govModuleAuthority := authtypes.NewModuleAddress(govtypes.ModuleName).String()

appKeepers.Wasm08Keeper = wasmclientkeeper.NewKeeperWithVM(appCodec, appKeepers.keys[wasm08types.StoreKey], govModuleAuthority, homePath, &appKeepers.IBCKeeper.ClientKeeper)
appKeepers.Wasm08Keeper = wasmclientkeeper.NewKeeperWithVM(appCodec, appKeepers.keys[wasm08types.StoreKey], &appKeepers.IBCKeeper.ClientKeeper, govModuleAuthority, vm, bApp.GRPCQueryRouter())

// ICA Host keeper
appKeepers.ICAHostKeeper = icahostkeeper.NewKeeper(
Expand Down
15 changes: 7 additions & 8 deletions cmd/centaurid/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@ import (
"io"
"os"

"github.com/CosmWasm/wasmd/x/wasm"
"github.com/notional-labs/composable/v6/app"
"github.com/spf13/cast"
"github.com/spf13/cobra"

wasmkeeper "github.com/CosmWasm/wasmd/x/wasm/keeper"
dbm "github.com/cometbft/cometbft-db"
tmcfg "github.com/cometbft/cometbft/config"
tmcli "github.com/cometbft/cometbft/libs/cli"
"github.com/cometbft/cometbft/libs/log"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/config"
"github.com/cosmos/cosmos-sdk/client/debug"
Expand All @@ -28,11 +32,6 @@ import (
"github.com/cosmos/cosmos-sdk/x/genutil"
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"

dbm "github.com/cometbft/cometbft-db"
tmcfg "github.com/cometbft/cometbft/config"
tmcli "github.com/cometbft/cometbft/libs/cli"
"github.com/cometbft/cometbft/libs/log"
)

var ChainID string
Expand Down Expand Up @@ -266,7 +265,7 @@ func (a appCreator) newApp(logger log.Logger, db dbm.DB, traceStore io.Writer, a

baseappOptions := server.DefaultBaseappOptions(appOpts)

var emptyWasmOpts []wasm.Option
var emptyWasmOpts []wasmkeeper.Option
newApp := app.NewComposableApp(
logger, db, traceStore, true,
skipUpgradeHeights,
Expand All @@ -293,7 +292,7 @@ func (a appCreator) appExport(
if !ok || homePath == "" {
return servertypes.ExportedApp{}, errors.New("application home not set")
}
var emptyWasmOpts []wasm.Option
var emptyWasmOpts []wasmkeeper.Option

if height != -1 {
anApp = app.NewComposableApp(
Expand Down

0 comments on commit d19d522

Please sign in to comment.