-
Notifications
You must be signed in to change notification settings - Fork 679
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
Genesis Account Command + Types #122
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.
We also need to implement and register the concrete GenesisAccount
type
Blocked on cosmos/cosmos-sdk#5042 |
} | ||
|
||
genesisState := simapp.NewDefaultGenesisState() |
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.
I have no idea why we were using simapp's default genesis state...
What’s the reason for the concrete GenesisAccount type? |
@rhuairahrighairidh great question! My initial intention and idea was that we could avoid too many layers of abstraction and simply deal with a single concrete type and also avoid migration headaches. After experimenting with adding genesis accounts, exporting and importing, I've found this to be futile. So we can deal with the core types defined in the SDK for Gaia. Other apps may possibly do the same or define their own... This also means we'll have to modify the v0.38 migration process for accounts by creating the appropriate concrete type. /cc @fedekunze |
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.
testedACK
Codecov Report
@@ Coverage Diff @@
## master #122 +/- ##
==========================================
- Coverage 66.32% 66.12% -0.21%
==========================================
Files 4 5 +1
Lines 490 493 +3
==========================================
+ Hits 325 326 +1
- Misses 134 136 +2
Partials 31 31 |
x/genaccounts
moduleRef: cosmos/cosmos-sdk#5017
Targeted PR against correct branch (see CONTRIBUTING.md)
Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
Wrote tests
Updated relevant documentation (
docs/
)Added a relevant changelog entry to the
Unreleased
section inCHANGELOG.md
Reviewed
Files changed
in the github PR explorerFor Admin Use: