chore: fix x/mint param sims (#12461)

`RandomizedParams` generates random parameter changes during simulations, however, it does so through `ParamChangeProposal` which is now legacy. 

Once all modules are migrated we will remove `RandomizedParams` entirely from the simulation interface.

For now, we just return an empty slice.
This commit is contained in:
Aleksandr Bezobchuk 2022-07-05 17:12:38 -04:00 committed by GitHub
parent ec0c8090e6
commit 1dcf633084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -291,7 +291,6 @@ jobs:
**/**.go
go.mod
go.sum
if: env.GIT_DIFF
- name: test-sim-nondeterminism
run: |
make test-sim-nondeterminism

View File

@ -207,8 +207,12 @@ func (AppModule) ProposalContents(simState module.SimulationState) []simtypes.We
}
// RandomizedParams creates randomized mint param changes for the simulator.
//
// TODO: Returns an empty slice which will make parameter changes a no-op during
// simulations. Once all modules are migrated, remove RandomizedParams from
// the simulation interface.
func (AppModule) RandomizedParams(r *rand.Rand) []simtypes.ParamChange {
return simulation.ParamChanges(r)
return []simtypes.ParamChange{}
}
// RegisterStoreDecoder registers a decoder for mint module's types.