From 166be3766bc313fa11701aa60a913ee219ad087e Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Wed, 24 May 2023 13:54:07 +0200 Subject: [PATCH] chore: make params module optional in app wiring (#16269) --- x/crisis/module.go | 2 +- x/distribution/module.go | 2 +- x/gov/module.go | 2 +- x/mint/module.go | 2 +- x/slashing/module.go | 2 +- x/staking/module.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/x/crisis/module.go b/x/crisis/module.go index 2501756688..a7e0147a42 100644 --- a/x/crisis/module.go +++ b/x/crisis/module.go @@ -202,7 +202,7 @@ type ModuleInputs struct { AddressCodec address.Codec // LegacySubspace is used solely for migration of x/params managed parameters - LegacySubspace exported.Subspace + LegacySubspace exported.Subspace `optional:"true"` } type ModuleOutputs struct { diff --git a/x/distribution/module.go b/x/distribution/module.go index 725b6d0330..2680181edd 100644 --- a/x/distribution/module.go +++ b/x/distribution/module.go @@ -230,7 +230,7 @@ type ModuleInputs struct { StakingKeeper types.StakingKeeper // LegacySubspace is used solely for migration of x/params managed parameters - LegacySubspace exported.Subspace + LegacySubspace exported.Subspace `optional:"true"` } type ModuleOutputs struct { diff --git a/x/gov/module.go b/x/gov/module.go index 01a8d43960..584b74d0bd 100644 --- a/x/gov/module.go +++ b/x/gov/module.go @@ -180,7 +180,7 @@ type ModuleInputs struct { DistributionKeeper govtypes.DistributionKeeper // LegacySubspace is used solely for migration of x/params managed parameters - LegacySubspace govtypes.ParamSubspace + LegacySubspace govtypes.ParamSubspace `optional:"true"` } type ModuleOutputs struct { diff --git a/x/mint/module.go b/x/mint/module.go index 7a1fb3c03c..b7794487ac 100644 --- a/x/mint/module.go +++ b/x/mint/module.go @@ -225,7 +225,7 @@ type ModuleInputs struct { InflationCalculationFn types.InflationCalculationFn `optional:"true"` // LegacySubspace is used solely for migration of x/params managed parameters - LegacySubspace exported.Subspace + LegacySubspace exported.Subspace `optional:"true"` AccountKeeper types.AccountKeeper BankKeeper types.BankKeeper diff --git a/x/slashing/module.go b/x/slashing/module.go index e92ad1b47a..654c7b57fe 100644 --- a/x/slashing/module.go +++ b/x/slashing/module.go @@ -238,7 +238,7 @@ type ModuleInputs struct { StakingKeeper types.StakingKeeper // LegacySubspace is used solely for migration of x/params managed parameters - LegacySubspace exported.Subspace + LegacySubspace exported.Subspace `optional:"true"` } type ModuleOutputs struct { diff --git a/x/staking/module.go b/x/staking/module.go index 2ea37e21fe..4588cfa7cd 100644 --- a/x/staking/module.go +++ b/x/staking/module.go @@ -219,7 +219,7 @@ type ModuleInputs struct { Key *store.KVStoreKey // LegacySubspace is used solely for migration of x/params managed parameters - LegacySubspace exported.Subspace + LegacySubspace exported.Subspace `optional:"true"` } // Dependency Injection Outputs