-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Fix add-genesis-account in simd #7069
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7069 +/- ##
==========================================
+ Coverage 54.66% 54.78% +0.11%
==========================================
Files 541 541
Lines 36887 36887
==========================================
+ Hits 20165 20208 +43
+ Misses 15077 15023 -54
- Partials 1645 1656 +11 |
simapp/simd/cmd/genaccounts.go
Outdated
@@ -140,7 +141,7 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa | |||
} | |||
authGenState.Accounts = genAccs | |||
|
|||
authGenStateBz, err := cdc.MarshalJSON(authGenState) | |||
authGenStateBz, err := json.MarshalIndent(authGenState, "", "") |
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.
should we add a test for this command?
In #7037, I added a test in simapp/simd/cmd/cmd_test.go
. But maybe they are not perfect there (ref: #7037 (comment)). Were do you think they should go @alexanderbez?
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.
Ideally, they're tested where they're defined. We can test this command in this package as you've done.
Thanks for the fix @sahith-narahari , waiting for the test so we don't break the simd that much :D |
* Update genaccounts to use encoding/json * Fix add genesis accounts * Add test for genaccounts * Code cleanup
Description
Ref: #7037
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