-
Notifications
You must be signed in to change notification settings - Fork 44
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: get set params are not align in evm #456
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #456 +/- ##
===========================================
+ Coverage 62.92% 62.94% +0.02%
===========================================
Files 127 127
Lines 12067 12062 -5
===========================================
Hits 7593 7593
+ Misses 3933 3930 -3
+ Partials 541 539 -2
|
x/feemarket/keeper/params.go
Outdated
@@ -30,8 +30,12 @@ func (k Keeper) GetParams(ctx sdk.Context) types.Params { | |||
objStore := ctx.ObjectStore(k.objectKey) | |||
v := objStore.Get(types.KeyPrefixObjectParams) | |||
if v == nil { | |||
store := k.storeService.OpenKVStore(ctx) |
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's the difference here, using store service vs store key?
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.
return is different, and we need panic if err 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.
the behavior is identical, the old store also panic on invalid input.
But the store service introduce extra memory allocation for the wrapper, I want to remove them.
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)