Skip to content

Commit

Permalink
lint2 + remove unused bankKeeper
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 27, 2024
1 parent 19d602b commit e9164ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func NewApp(
poamodule.NewAppModule(appCodec, app.POAKeeper),
// sdk
crisis.NewAppModule(app.CrisisKeeper, skipGenesisInvariants, app.GetSubspace(crisistypes.ModuleName)), // always be last to make sure that it checks for all invariants and not only part of them
manifest.NewAppModule(appCodec, app.ManifestKeeper, app.MintKeeper, app.BankKeeper),
manifest.NewAppModule(appCodec, app.ManifestKeeper, app.MintKeeper),
)

// BasicModuleManager defines the module BasicManager is in charge of setting up basic,
Expand Down
4 changes: 3 additions & 1 deletion x/manifest/depinject.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func init() {
)
}

//nolint:revive
type ModuleInputs struct {
depinject.In

Expand All @@ -45,6 +46,7 @@ type ModuleInputs struct {
BankKeeper bankkeeper.Keeper
}

//nolint:revive
type ModuleOutputs struct {
depinject.Out

Expand All @@ -54,7 +56,7 @@ type ModuleOutputs struct {

func ProvideModule(in ModuleInputs) ModuleOutputs {
k := keeper.NewKeeper(in.Cdc, in.StoreService, in.MintKeeper, in.BankKeeper, log.NewLogger(os.Stderr), authtypes.NewModuleAddress(govtypes.ModuleName).String())
m := NewAppModule(in.Cdc, k, in.MintKeeper, in.BankKeeper)
m := NewAppModule(in.Cdc, k, in.MintKeeper)

return ModuleOutputs{Module: m, Keeper: k, Out: depinject.Out{}}
}
4 changes: 0 additions & 4 deletions x/manifest/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper"
mintkeeper "github.com/cosmos/cosmos-sdk/x/mint/keeper"
)

Expand Down Expand Up @@ -55,21 +54,18 @@ type AppModule struct {

keeper keeper.Keeper
mk mintkeeper.Keeper
bk bankkeeper.Keeper
}

// NewAppModule constructor
func NewAppModule(
cdc codec.Codec,
keeper keeper.Keeper,
mintkeeper mintkeeper.Keeper,
bankkeeper bankkeeper.Keeper,
) *AppModule {
return &AppModule{
AppModuleBasic: AppModuleBasic{cdc: cdc},
keeper: keeper,
mk: mintkeeper,
bk: bankkeeper,
}
}

Expand Down

0 comments on commit e9164ae

Please sign in to comment.