Skip to content

Commit

Permalink
check out module.go from origin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Apr 4, 2023
1 parent ed4ad06 commit dcfc094
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions x/wasm/genesis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
)

func TestInitGenesis(t *testing.T) {
t.Helper()
data := setupTest(t)

deposit := sdk.NewCoins(sdk.NewInt64Coin("denom", 100000))
Expand Down
1 change: 1 addition & 0 deletions x/wasm/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (AppModule) ConsensusVersion() uint64 { return 3 }

func (am AppModule) RegisterServices(cfg module.Configurator) {
types.RegisterMsgServer(cfg.MsgServer(), keeper.NewMsgServerImpl(am.keeper))
types.RegisterQueryServer(cfg.QueryServer(), NewQuerier(am.keeper))

m := keeper.NewMigrator(*am.keeper, am.legacySubspace)
err := cfg.RegisterMigration(types.ModuleName, 1, m.Migrate1to2)
Expand Down
2 changes: 1 addition & 1 deletion x/wasm/module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type testData struct {

func setupTest(t *testing.T) testData {
t.Helper()
ctx, keepers := CreateTestInput(t, false, "iterator,staking,stargate,cosmwasm_1_1")
ctx, keepers := CreateTestInput(t, false, "iterator,staking,stargate,cosmwasm_1_1,cosmwasm_1_2,token_factory")
encConf := keeper.MakeEncodingConfig(t)
queryRouter := baseapp.NewGRPCQueryRouter()
serviceRouter := baseapp.NewMsgServiceRouter()
Expand Down

0 comments on commit dcfc094

Please sign in to comment.