-
Notifications
You must be signed in to change notification settings - Fork 53
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
migrate bank description #770
Conversation
app/upgrade_handler.go
Outdated
metaData := baseKeeper.GetAllDenomMetaData(ctx) | ||
|
||
for _, meta := range metaData { | ||
if meta.Description == "The native staking token of the CertiK Chain." { |
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.
Do we need this condition?
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 can also remove the if directly and assign the value directly.
Because although it is an array at present, the length is only 1 and will not affect other
if meta.Description == "The native staking token of the CertiK Chain." { | ||
meta.Description = "The native staking token of the Shentu Chain." | ||
} | ||
baseKeeper.SetDenomMetaData(ctx, meta) |
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.
put this line in the if statement?
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 can also remove the if directly and assign the value directly.
Because although it is an array at present, the length is only 1 and will not affect other
Codecov Report
@@ Coverage Diff @@
## master #770 +/- ##
==========================================
+ Coverage 47.77% 47.80% +0.02%
==========================================
Files 130 130
Lines 12705 12717 +12
==========================================
+ Hits 6070 6079 +9
- Misses 6044 6046 +2
- Partials 591 592 +1
|
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
Closes: #XXX
Related: #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)