From 9ba03b015aebeac857d0a8f4d60a4d1c0ddbba51 Mon Sep 17 00:00:00 2001 From: Mark Rushakoff Date: Fri, 7 Apr 2023 11:27:23 -0400 Subject: [PATCH] style: rename to ModuleInputs to fix lint issue (#15727) --- x/distribution/module.go | 8 ++++---- x/evidence/module.go | 10 ++++------ 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/x/distribution/module.go b/x/distribution/module.go index 4420ffd349..6306eb86f5 100644 --- a/x/distribution/module.go +++ b/x/distribution/module.go @@ -217,7 +217,7 @@ func init() { ) } -type DistrInputs struct { +type ModuleInputs struct { depinject.In Config *modulev1.Module @@ -232,7 +232,7 @@ type DistrInputs struct { LegacySubspace exported.Subspace } -type DistrOutputs struct { +type ModuleOutputs struct { depinject.Out DistrKeeper keeper.Keeper @@ -240,7 +240,7 @@ type DistrOutputs struct { Hooks staking.StakingHooksWrapper } -func ProvideModule(in DistrInputs) DistrOutputs { +func ProvideModule(in ModuleInputs) ModuleOutputs { feeCollectorName := in.Config.FeeCollectorName if feeCollectorName == "" { feeCollectorName = authtypes.FeeCollectorName @@ -264,7 +264,7 @@ func ProvideModule(in DistrInputs) DistrOutputs { m := NewAppModule(in.Cdc, k, in.AccountKeeper, in.BankKeeper, in.StakingKeeper, in.LegacySubspace) - return DistrOutputs{ + return ModuleOutputs{ DistrKeeper: k, Module: m, Hooks: staking.StakingHooksWrapper{StakingHooks: k.Hooks()}, diff --git a/x/evidence/module.go b/x/evidence/module.go index 255ee7fcc2..5632450294 100644 --- a/x/evidence/module.go +++ b/x/evidence/module.go @@ -199,8 +199,7 @@ func init() { ) } -//nolint:revive -type EvidenceInputs struct { +type ModuleInputs struct { depinject.In Key *store.KVStoreKey @@ -210,17 +209,16 @@ type EvidenceInputs struct { SlashingKeeper types.SlashingKeeper } -//nolint:revive -type EvidenceOutputs struct { +type ModuleOutputs struct { depinject.Out EvidenceKeeper keeper.Keeper Module appmodule.AppModule } -func ProvideModule(in EvidenceInputs) EvidenceOutputs { +func ProvideModule(in ModuleInputs) ModuleOutputs { k := keeper.NewKeeper(in.Cdc, in.Key, in.StakingKeeper, in.SlashingKeeper) m := NewAppModule(*k) - return EvidenceOutputs{EvidenceKeeper: *k, Module: m} + return ModuleOutputs{EvidenceKeeper: *k, Module: m} }