-
Notifications
You must be signed in to change notification settings - Fork 70
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
chore: merge genesisapplier & genesisdeployment #63
Conversation
WalkthroughThe recent changes involve a significant refactoring of package imports and structures within the codebase. The Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? |
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.
Actionable comments posted: 1
Outside diff range, codebase verification and nitpick comments (1)
genesis/applier.go (1)
Line range hint
25-26
:
Improve error message specificity.The error message "error marshaling genesis" could be more specific by including the original error.
- return nil, fmt.Errorf("error marshaling genesis") + return nil, fmt.Errorf("error marshaling genesis: %v", err)
genesis/applier.go
Outdated
|
||
err := json.Unmarshal(genesisJson, &genesis) |
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.
Improve error message specificity.
The error message "unable to parse genesis json" could be more specific by including the original error.
- return nil, fmt.Errorf("unable to parse genesis json")
+ return nil, fmt.Errorf("unable to parse genesis json: %v", err)
Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
err := json.Unmarshal(genesisJson, &genesis) | |
err := json.Unmarshal(genesisJson, &genesis) | |
if err != nil { | |
return nil, fmt.Errorf("unable to parse genesis json: %v", err) | |
} |
No description provided.