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(distribution)!: add cometinfo #20588
refactor(distribution)!: add cometinfo #20588
Changes from 1 commit
2f71989
fd7cd4c
d7e60dd
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.
The error handling here is appropriate, but consider adding telemetry or logging to capture the error details for better observability.
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
testCometService
is used inx/distribution/keeper/delegation_test.go
but is not initialized or imported within this file. It is defined and initialized inx/distribution/keeper/allocation_test.go
. This indicates thattestCometService
is not properly initialized before use indelegation_test.go
.testCometService
is properly initialized inx/distribution/keeper/delegation_test.go
.Analysis chain
Ensure
testCometService
is properly initialized before use in tests.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 120
Script:
Length of output: 76
Script:
Length of output: 394
Script:
Length of output: 252
Script:
Length of output: 122
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 integration of
testCometService
ininitFixture
is not consistently applied across all instances. Specifically, the following files need attention:x/feegrant/keeper/genesis_test.go
x/circuit/keeper/keeper_test.go
x/circuit/keeper/query_test.go
x/circuit/keeper/msg_server_test.go
x/circuit/ante/circuit_test.go
tests/integration/staking/keeper/genesis_test.go
tests/integration/staking/keeper/vote_extensions_test.go
tests/integration/staking/keeper/validator_test.go
tests/integration/staking/keeper/slash_test.go
tests/integration/staking/keeper/unbonding_test.go
tests/integration/staking/keeper/msg_server_test.go
tests/integration/staking/keeper/grpc_query_test.go
tests/integration/staking/keeper/common_test.go
tests/integration/staking/keeper/delegation_test.go
tests/integration/runtime/query_test.go
tests/integration/slashing/keeper/keeper_test.go
tests/integration/gov/keeper/tally_test.go
tests/integration/gov/keeper/grpc_query_test.go
tests/integration/gov/keeper/keeper_test.go
tests/integration/distribution/keeper/msg_server_test.go
tests/integration/distribution/keeper/grpc_query_test.go
tests/integration/evidence/keeper/infraction_test.go
tests/integration/auth/keeper/msg_server_test.go
collections/genesis_test.go
client/v2/autocli/query_test.go
client/v2/autocli/msg_test.go
client/v2/autocli/common_test.go
Ensure these files are updated to include the
testCometService
parameter in theinitFixture
function.Analysis chain
The integration of
testCometService
ininitFixture
aligns with the PR's objective to incorporatecometService
. Ensure all dependent tests are updated to handle this new parameter.Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 9095