Skip to content

Commit

Permalink
chore: make params module optional in app wiring (#16269)
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt authored May 24, 2023
1 parent 9d45ed4 commit 166be37
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion x/crisis/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion x/distribution/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion x/gov/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion x/mint/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion x/slashing/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion x/staking/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 166be37

Please sign in to comment.