-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Refactor use of parameters in x/distribution to match module spec #5506
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5506 +/- ##
==========================================
- Coverage 54.54% 54.35% -0.19%
==========================================
Files 313 313
Lines 18875 18823 -52
==========================================
- Hits 10295 10232 -63
- Misses 7796 7812 +16
+ Partials 784 779 -5
|
@@ -135,7 +135,7 @@ func CreateTestInputAdvanced(t *testing.T, isCheckTx bool, initPower int64, | |||
sk := staking.NewKeeper(cdc, keyStaking, supplyKeeper, pk.Subspace(staking.DefaultParamspace)) | |||
sk.SetParams(ctx, staking.DefaultParams()) | |||
|
|||
keeper := NewKeeper(cdc, keyDistr, pk.Subspace(DefaultParamspace), sk, supplyKeeper, auth.FeeCollectorName, blacklistedAddrs) | |||
keeper := NewKeeper(cdc, keyDistr, pk.Subspace(types.DefaultParamspace), sk, supplyKeeper, auth.FeeCollectorName, blacklistedAddrs) |
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.
we need to do a cleanup on the distr keeper tests eventually to use simapp
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.
ACK
The
x/distribution
made redundant use of parameters and did not follow the module spec. So we introduce aParams
type and remove a lot of cruft and duplicate code. Also, move all parameter related logic that should be intypes/
fromkeeper/
.ref: #5504
For contributor use:
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerFor admin use:
WIP
,R4R
,docs
, etc)