-
Notifications
You must be signed in to change notification settings - Fork 45
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
Problem: query blocks before enable feemarket module get nil pointer … #485
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #485 +/- ##
===========================================
- Coverage 61.53% 61.52% -0.02%
===========================================
Files 127 127
Lines 9477 9484 +7
===========================================
+ Hits 5832 5835 +3
- Misses 3107 3113 +6
+ Partials 538 536 -2
|
bz := ctx.KVStore(k.storeKey).Get(types.ParamsKey) | ||
if len(bz) == 0 { | ||
k.ss.GetParamSetIfExists(ctx, ¶ms) | ||
// avoid nil pointers when params are not set | ||
params.FillDefaults() |
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.
actually it's panic from store.parent.Get before get from subspace
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.
why parent get will have panic?
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.
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.
the store won't be nil if it's registered in the binary, just the data could be missing.
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.
when query old version, cacheStore will be nil right?
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.
hmm, that makes sense.
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.
I guess if we have this: crypto-org-chain/cosmos-sdk#435, we don't need this?
…error
Closes: #XXX
Description
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)