Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove legacy interface function, RandomizedParams, which is no longer used #3149

Merged
merged 4 commits into from
Feb 15, 2023

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented Feb 15, 2023

Description

While reviewing changes, I noticed this function had been removed from the SDK AppModuleSimulation function

closes: #3148

Commit Message / Changelog Entry

chore: remove legacy interface function `RandomizedParams`, which is no longer used.

see the guidelines for commit messages. (view raw markdown for examples)


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md).
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards and Go style guide.
  • Wrote unit and integration tests.
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/).
  • Added relevant godoc comments.
  • Provide a commit message to be used for the changelog entry in the PR description for review.
  • Re-reviewed Files changed in the Github PR explorer.
  • Review Codecov Report in the comment section below once CI passes.

Remove RandomizedParams which has been removed from the AppModuleSimulation interface.
Remove associated ParamChanges helper functions
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -175,11 +174,6 @@ func (AppModule) ProposalContents(_ module.SimulationState) []simtypes.WeightedP
return nil
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can delete this of all modules if you don't use it.
And as mentioned here, if you keep it, it should be still returning WeightedProposalContent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will delete it as it is unused 👍 Thanks for reviewing!

Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙏

@colin-axner colin-axner enabled auto-merge (squash) February 15, 2023 15:15
damiannolan added a commit that referenced this pull request Feb 15, 2023
* adding migration doc info for sdk v0.47

* code alignment

* title formatting

* chore: preemptively apply changes from #3149

* chore: apply changes from #3150

* chore: formatting

* chore: combine proposal contents removal into existing section

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com>
mergify bot pushed a commit that referenced this pull request Feb 15, 2023
* adding migration doc info for sdk v0.47

* code alignment

* title formatting

* chore: preemptively apply changes from #3149

* chore: apply changes from #3150

* chore: formatting

* chore: combine proposal contents removal into existing section

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com>
(cherry picked from commit f034e6b)

# Conflicts:
#	docs/migrations/v6-to-v7.md
Copy link
Contributor

@chatton chatton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the cleanup ❤️

@colin-axner colin-axner merged commit 0c5af26 into main Feb 15, 2023
@colin-axner colin-axner deleted the colin/3148-randomized-params branch February 15, 2023 16:34
stackman27 pushed a commit to stackman27/ibc-go that referenced this pull request Mar 13, 2023
* adding migration doc info for sdk v0.47

* code alignment

* title formatting

* chore: preemptively apply changes from cosmos#3149

* chore: apply changes from cosmos#3150

* chore: formatting

* chore: combine proposal contents removal into existing section

---------

Co-authored-by: Carlos Rodriguez <carlos@interchain.io>
Co-authored-by: Colin Axnér <25233464+colin-axner@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove RandomizedParams functions
5 participants