From 98f4498e81500e956af18d3981f5e83d19680c90 Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Tue, 28 Mar 2023 16:14:25 +0700 Subject: [PATCH] fix lints --- app/app.go | 1 - custom/bank/keeper/keeper.go | 2 -- x/alliance/keeper/hooks.go | 4 ++-- x/alliance/module.go | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/app.go b/app/app.go index 117cc188..e7e9f306 100644 --- a/app/app.go +++ b/app/app.go @@ -357,7 +357,6 @@ func New( appCodec, keys[banktypes.StoreKey], app.AccountKeeper, - app.GetSubspace(banktypes.ModuleName), app.BlockedModuleAccountAddrs(), authtypes.NewModuleAddress(govtypes.ModuleName).String(), ) diff --git a/custom/bank/keeper/keeper.go b/custom/bank/keeper/keeper.go index d4f27b24..58c48e68 100644 --- a/custom/bank/keeper/keeper.go +++ b/custom/bank/keeper/keeper.go @@ -9,7 +9,6 @@ import ( accountkeeper "github.com/cosmos/cosmos-sdk/x/auth/keeper" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" "github.com/cosmos/cosmos-sdk/x/bank/types" - paramtypes "github.com/cosmos/cosmos-sdk/x/params/types" stakingkeeper "github.com/cosmos/cosmos-sdk/x/staking/keeper" "google.golang.org/grpc/codes" "google.golang.org/grpc/status" @@ -33,7 +32,6 @@ func NewBaseKeeper( cdc codec.BinaryCodec, storeKey storetypes.StoreKey, ak accountkeeper.AccountKeeper, - paramSpace paramtypes.Subspace, blockedAddrs map[string]bool, authority string, ) Keeper { diff --git a/x/alliance/keeper/hooks.go b/x/alliance/keeper/hooks.go index 60774e2a..872f8476 100644 --- a/x/alliance/keeper/hooks.go +++ b/x/alliance/keeper/hooks.go @@ -60,9 +60,9 @@ func (h Hooks) BeforeValidatorSlashed(ctx sdk.Context, valAddr sdk.ValAddress, f return nil } -func (h Hooks) AfterValidatorSlashed(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress, fraction sdk.Dec) { +func (h Hooks) AfterValidatorSlashed(_ sdk.Context, _ sdk.ConsAddress, _ sdk.ValAddress, _ sdk.Dec) { } -func (h Hooks) AfterUnbondingInitiated(ctx sdk.Context, id uint64) error { +func (h Hooks) AfterUnbondingInitiated(_ sdk.Context, _ uint64) error { return nil } diff --git a/x/alliance/module.go b/x/alliance/module.go index 67a44dee..31dddf48 100644 --- a/x/alliance/module.go +++ b/x/alliance/module.go @@ -135,7 +135,7 @@ func (a AppModule) GenerateGenesisState(simState *module.SimulationState) { simulation2.RandomizedGenesisState(simState) } -func (a AppModule) ProposalContents(simState module.SimulationState) []simtypes.WeightedProposalMsg { +func (a AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedProposalMsg { return nil }