diff --git a/app/helpers/test_helpers.go b/app/helpers/test_helpers.go index 8a1c6a765..49f902368 100644 --- a/app/helpers/test_helpers.go +++ b/app/helpers/test_helpers.go @@ -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" @@ -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" ) @@ -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( diff --git a/app/keepers/keepers.go b/app/keepers/keepers.go index 3bcee55e4..75aa91229 100644 --- a/app/keepers/keepers.go +++ b/app/keepers/keepers.go @@ -210,6 +210,7 @@ func (appKeepers *AppKeepers) InitNormalKeepers( appKeepers.BankKeeper, appKeepers.StakingKeeper, appKeepers.DistrKeeper, + authtypes.FeeCollectorName, ) appKeepers.BankKeeper.RegisterKeepers(appKeepers.AllianceKeeper, appKeepers.StakingKeeper) @@ -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( diff --git a/cmd/centaurid/cmd/root.go b/cmd/centaurid/cmd/root.go index 110350cdc..a65011c19 100644 --- a/cmd/centaurid/cmd/root.go +++ b/cmd/centaurid/cmd/root.go @@ -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" @@ -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 @@ -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, @@ -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(