-
Notifications
You must be signed in to change notification settings - Fork 609
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
Make token factory handle empty genesis configurations better #1551
Conversation
e2e test failure seems like some sort of docker issue? |
The local compilation is not hitting blocks, so essentially the update failed. I will go through it locally to see what the specific issue is for this pr |
Codecov Report
@@ Coverage Diff @@
## main #1551 +/- ##
=======================================
Coverage 19.46% 19.47%
=======================================
Files 242 242
Lines 32255 32258 +3
=======================================
+ Hits 6279 6282 +3
Misses 24822 24822
Partials 1154 1154
Continue to review full report at Codecov.
|
* Make token factory handle empty genesis configurations better * add start back to dockerfile Co-authored-by: Adam Tucker <adamleetucker@outlook.com> (cherry picked from commit d610ff3) # Conflicts: # Dockerfile
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.
Curious why it'd ever be nil to begin with. Does default genesis state not use sdk.NewCoins
?
I ran into it when modifying the v8 genesis on LocalOsmosis to work on v9. Will the average user ever run into this case? Probably not. But its just a nice check to have since if it is null (like it was in my case) and it still gets through init genesis, it causes untraceable errors. |
#1551) (#1553) * Make token factory handle empty genesis configurations better (#1551) * Make token factory handle empty genesis configurations better * add start back to dockerfile Co-authored-by: Adam Tucker <adamleetucker@outlook.com> (cherry picked from commit d610ff3) # Conflicts: # Dockerfile * Update Dockerfile Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com> Co-authored-by: Adam Tucker <adamleetucker@outlook.com>
We should add safe guards, I agree @czarcas7ic 👍 |
What is the purpose of the change
A problem @czarcas7ic ran into was getting panics on token factory messages, when the genesis wasn't initialized.
Brief Changelog
Testing and Verifying
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? no, still pre-release for token factory