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

module: pass route by value #6404

Merged
merged 8 commits into from
Jun 11, 2020

Conversation

jgimeno
Copy link
Contributor

@jgimeno jgimeno commented Jun 11, 2020

Description

related: #6232
related: #6231

After having a chat with @alessio we came to the conclusion that is better to return an instance than a pointer for security reasons.


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.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

@codecov
Copy link

codecov bot commented Jun 11, 2020

Codecov Report

Merging #6404 into master will increase coverage by 0.01%.
The diff coverage is 94.73%.

@@            Coverage Diff             @@
##           master    #6404      +/-   ##
==========================================
+ Coverage   55.54%   55.55%   +0.01%     
==========================================
  Files         465      465              
  Lines       27524    27526       +2     
==========================================
+ Hits        15289    15293       +4     
+ Misses      11136    11134       -2     
  Partials     1099     1099              

@jgimeno jgimeno marked this pull request as ready for review June 11, 2020 11:18
Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

utACK. One suggestion

types/router.go Outdated Show resolved Hide resolved
types/router.go Outdated Show resolved Hide resolved
types/router.go Outdated Show resolved Hide resolved
@tac0turtle tac0turtle changed the title Jonathan/module route not pointer but instance module: pass route by value Jun 11, 2020
…ub.com:cosmos/cosmos-sdk into jonathan/module-route-not-pointer-but-instance
@jgimeno jgimeno requested a review from alessio June 11, 2020 14:16
@jgimeno jgimeno added Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. R4R labels Jun 11, 2020
Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK 🎉

Copy link
Contributor

@alessio alessio left a comment

Choose a reason for hiding this comment

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

@jgimeno please run make mocks

@tac0turtle tac0turtle added the A:automerge Automatically merge PR once all prerequisites pass. label Jun 11, 2020
@mergify mergify bot merged commit 49597b1 into master Jun 11, 2020
@mergify mergify bot deleted the jonathan/module-route-not-pointer-but-instance branch June 11, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants