Skip to content

Commit

Permalink
fix(tests): fix simulation test invalid genesis state
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Dec 17, 2024
1 parent a3ba245 commit 91ae758
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion x/rewards/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ func RandomizedGenState(simState *module.SimulationState) {
types.NewDelegationTypeRecords(nil, nil, nil, nil),
types.NewDelegationTypeRecords(nil, nil, nil, nil),
types.NewDelegationTypeRecords(nil, nil, nil, nil),
RandomOperatorAccumulatedCommissionRecords(simState.Rand, operatorsGenesis.Operators, []string{simState.BondDenom}),

// Empty accumulated commissions since we need to perform side effects on
// other modules to have valid commissions
nil,

RandomPoolServiceTotalDelegatorShares(simState.Rand, poolsGenesis, servicesGenesis, []string{simState.BondDenom}),
)
simState.GenState[types.ModuleName] = simState.Cdc.MustMarshalJSON(genesis)
Expand Down

0 comments on commit 91ae758

Please sign in to comment.