Skip to content

Commit

Permalink
chore: make params module optional in app wiring (backport cosmos#16269
Browse files Browse the repository at this point in the history
…) (cosmos#16271)

Co-authored-by: Julien Robert <julien@rbrt.fr>
  • Loading branch information
2 people authored and kakysha committed Aug 15, 2023
1 parent e34540d commit ff89ab8
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 CrisisInputs struct {
BankKeeper types.SupplyKeeper

// LegacySubspace is used solely for migration of x/params managed parameters
LegacySubspace exported.Subspace
LegacySubspace exported.Subspace `optional:"true"`
}

type CrisisOutputs 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 @@ -223,7 +223,7 @@ type DistrInputs struct {
StakingKeeper types.StakingKeeper

// LegacySubspace is used solely for migration of x/params managed parameters
LegacySubspace exported.Subspace
LegacySubspace exported.Subspace `optional:"true"`
}

type DistrOutputs 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 @@ -176,7 +176,7 @@ type GovInputs struct {
StakingKeeper govtypes.StakingKeeper

// LegacySubspace is used solely for migration of x/params managed parameters
LegacySubspace govtypes.ParamSubspace
LegacySubspace govtypes.ParamSubspace `optional:"true"`
}

type GovOutputs 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 MintInputs 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 @@ -223,7 +223,7 @@ type SlashingInputs struct {
StakingKeeper types.StakingKeeper

// LegacySubspace is used solely for migration of x/params managed parameters
LegacySubspace exported.Subspace
LegacySubspace exported.Subspace `optional:"true"`
}

type SlashingOutputs 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 @@ -210,7 +210,7 @@ type StakingInputs 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 ff89ab8

Please sign in to comment.