Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
refactor(modules): adopt appmodulev2.Hasgenesis #19627
refactor(modules): adopt appmodulev2.Hasgenesis #19627
Changes from 2 commits
9926a79
b197a54
14240c1
6498de7
ab07ff4
8598f6b
4ee4c9b
5b0125a
a3438da
185a2ef
ecd74da
8593803
1ced3b7
497276c
d4c1f79
0594f67
f06dd1c
9ce438a
3c47508
e07cfa1
d594876
4a364a3
c108dd8
d4d66db
7dba752
287cc1f
7dd0c9c
5427d0a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Tip
Codebase Verification
The simplification in the call to
baseapp.ValidateVoteExtensions
observed invote_extensions_test.go
does not appear to be consistently applied across the codebase, as calls in other test files and the implementation show different parameters being used. It's recommended to ensure that the function's usage is consistent with its intended signature and application across all relevant parts of the codebase.Analysis chain
The simplification in the call to
baseapp.ValidateVoteExtensions
inTestValidateVoteExtensions
is a positive change. Please ensure this new signature is consistently used across the codebase.Scripts Executed
The following scripts were executed for the analysis:
Script:
Length of output: 2834
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.
The addition of the
appmodulev2.HasGenesis
check in theSetOrderInitGenesis
method is correctly implemented and aligns with the PR's objectives. This ensures that modules implementing the new interface are correctly recognized during the initialization order setup.One minor suggestion for improvement is to add a comment explaining the purpose of this new check, especially for developers who might be unfamiliar with the transition to
appmodulev2
. This can enhance code readability and maintainability.+ // Check if the module implements the appmodulev2.HasGenesis interface if _, hasGenesis := module.(appmodulev2.HasGenesis); hasGenesis { return !hasGenesis }
Committable suggestion