-
Notifications
You must be signed in to change notification settings - Fork 352
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
update logic ExportAppStateAndValidators function #918
update logic ExportAppStateAndValidators function #918
Conversation
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.
@ThanhNhann would you mind opening an issue to detail the problem this is solving?
@@ -40,12 +40,15 @@ func (app *ChainApp) ExportAppStateAndValidators( | |||
} | |||
|
|||
validators, err := staking.WriteValidators(ctx, app.StakingKeeper) |
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.
err here is actually nil
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 output err is never assigned, we need to fix in cosmos-sdk then.
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.
thank @yihuang for your update
Codecov Report
@@ Coverage Diff @@
## master #918 +/- ##
==========================================
+ Coverage 14.40% 22.47% +8.06%
==========================================
Files 120 117 -3
Lines 14372 13495 -877
==========================================
+ Hits 2071 3033 +962
+ Misses 11830 9870 -1960
- Partials 471 592 +121
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Signed-off-by: Tomas Tauber <[email protected]>
will update to a newer Cosmos SDK in a subsequent PR |
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
Close: #920
What is the purpose of the change
ExportAppStateAndValidators
functionPR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)