Skip to content

Commit

Permalink
Merge branch 'v0.47.x-ibc' into v0.47.x-ibc-ruslan
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat authored Dec 8, 2022
2 parents f256c31 + 975e533 commit 003eee9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 21 deletions.
28 changes: 7 additions & 21 deletions testing/simapp/app_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ import (
// IBC application testing ports
const (
MockFeePort string = ibcmock.ModuleName + ibcfeetypes.ModuleName

)

var (
Expand All @@ -117,14 +118,14 @@ var (
upgradeclient.LegacyCancelProposalHandler,
},
),
groupmodule.AppModuleBasic{},
params.AppModuleBasic{},
crisis.AppModuleBasic{},
slashing.AppModuleBasic{},
feegrantmodule.AppModuleBasic{},
upgrade.AppModuleBasic{},
evidence.AppModuleBasic{},
authzmodule.AppModuleBasic{},
groupmodule.AppModuleBasic{},
vesting.AppModuleBasic{},
consensus.AppModuleBasic{},
)
Expand Down Expand Up @@ -296,24 +297,11 @@ func NewSimApp(
// so that other modules that want to create or claim capabilities afterwards in InitChain
// can do so safely.
genesisModuleOrder := []string{
capabilitytypes.ModuleName,
authtypes.ModuleName,
banktypes.ModuleName,
distrtypes.ModuleName,
stakingtypes.ModuleName,
slashingtypes.ModuleName,
govtypes.ModuleName,
minttypes.ModuleName,
crisistypes.ModuleName,
genutiltypes.ModuleName,
evidencetypes.ModuleName,
authz.ModuleName,
feegrant.ModuleName,
group.ModuleName,
paramstypes.ModuleName,
upgradetypes.ModuleName,
vestingtypes.ModuleName,
consensustypes.ModuleName,
capabilitytypes.ModuleName, authtypes.ModuleName, banktypes.ModuleName,
distrtypes.ModuleName, stakingtypes.ModuleName, slashingtypes.ModuleName, govtypes.ModuleName,
minttypes.ModuleName, crisistypes.ModuleName, genutiltypes.ModuleName, evidencetypes.ModuleName, authz.ModuleName,
feegrant.ModuleName, group.ModuleName, paramstypes.ModuleName, upgradetypes.ModuleName,
vestingtypes.ModuleName, consensustypes.ModuleName,
}
app.ModuleManager.SetOrderInitGenesis(genesisModuleOrder...)
app.ModuleManager.SetOrderExportGenesis(genesisModuleOrder...)
Expand Down Expand Up @@ -434,8 +422,6 @@ func (app *SimApp) RegisterAPIRoutes(apiSvr *api.Server, apiConfig config.APICon
}
}

func (app SimApp) RegisterUpgradeHandlers() {}

// GetMaccPerms returns a copy of the module account permissions
//
// NOTE: This is solely to be used for testing purposes.
Expand Down
1 change: 1 addition & 0 deletions testing/simapp/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func setup(withGenesis bool, invCheckPeriod uint) (*SimApp, GenesisState) {
appOptions[server.FlagInvCheckPeriod] = invCheckPeriod

app := NewSimApp(log.NewNopLogger(), db, nil, true, simtestutil.EmptyAppOptions{})

if withGenesis {
return app, NewDefaultGenesisState(app.AppCodec())
}
Expand Down

0 comments on commit 003eee9

Please sign in to comment.