-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
simapp InitChainer: use json instead of tmjson #7523
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7523 +/- ##
=======================================
Coverage 61.46% 61.46%
=======================================
Files 659 659
Lines 37932 37932
=======================================
Hits 23316 23316
Misses 12172 12172
Partials 2444 2444
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Still relevant, i'll try to add this missing test. |
Any progress here? Can we close the or and open an issue. We can keep the branch around but let's clean up the pull request section |
ready for review will do the test in another PR. |
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.
Looks good. Did you spin up a node to test it?
Yes. btw |
* simapp InitChainer: use json instead of tmjson * First run for test * Revert export_test Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Description
ref: #7514 (comment)
GenesisState is a
map[string]json.RawMessage
. So a json.Unmarshal is enough. The actual decoding of theseRawMessage
using appCodec is done inInitGenesis
(2 lines below).TODO:
I will create a test to: 1/ export a genesis file and 2/ run simapp again with the exported file.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes