-
Notifications
You must be signed in to change notification settings - Fork 607
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
Consolidate code between InitGenesis and CreateGauge #766
Conversation
Codecov Report
@@ Coverage Diff @@
## main #766 +/- ##
==========================================
- Coverage 20.03% 19.99% -0.04%
==========================================
Files 189 189
Lines 24566 24553 -13
==========================================
- Hits 4921 4909 -12
+ Misses 18790 18788 -2
- Partials 855 856 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in general!
Just curious about the variable styling used and should be good to go!
Co-authored-by: Matt, Park <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think about CreateGauge
actually calling SetGaugeWithRefKey
to further consolidate? (since SetGaugeWithRefKey seems to have duplicate code and SetGaugeWithRefKey
covers some of the parts that are done in CreateGauge)?
Yeah I think we should probably move towards that. To get this merged sooner, lets make that into a second issue? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
* Consolidate codepaths between InitGenesis and CreateGauge * Update CHANGELOG.md * Fix lint errors * Update function name * Update x/incentives/keeper/gauge.go comments Co-authored-by: Matt, Park <[email protected]> * Fix capitalization of variable names Co-authored-by: Matt, Park <[email protected]>
Closes: #644
Description
For contributor use:
docs/
) or specification (x/<module>/spec/
)Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorer