Skip to content

Addition of Staking Rewards to Distribution Module #5

Addition of Staking Rewards to Distribution Module

Addition of Staking Rewards to Distribution Module #5

Triggered via pull request April 28, 2024 10:34
Status Failure
Total duration 2m 41s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
lint: x/distribution/testutil/staking_helper.go#L85
Error return value of `(github.com/andromedaprotocol/andromedad/x/distribution/keeper.Hooks).BeforeValidatorSlashed` is not checked (errcheck)
lint: x/distribution/keeper/grpc_query.go#L18
var `q` is unused (unused)
lint: x/distribution/keeper/grpc_query.go#L306
SA4001: *&x will be simplified to x. It will not copy x. (staticcheck)
lint: x/distribution/types/msg.go#L158
SA1019: sdkerrors.Wrap is deprecated: functionality of this package has been moved to it's own module: (staticcheck)
lint: x/distribution/types/msg.go#L198
SA1019: sdkerrors.Wrap is deprecated: functionality of this package has been moved to it's own module: (staticcheck)
lint: x/distribution/migrations/v3/json.go#L14
SA1019: oldState.Params.BaseProposerReward is deprecated: The base_proposer_reward field is deprecated and is no longer used in the x/distribution module's reward mechanism. (staticcheck)
lint: x/distribution/migrations/v3/json.go#L15
SA1019: oldState.Params.BonusProposerReward is deprecated: The bonus_proposer_reward field is deprecated and is no longer used in the x/distribution module's reward mechanism. (staticcheck)
lint: x/distribution/migrations/v3/migrate.go#L27
SA1019: currParams.BaseProposerReward is deprecated: The base_proposer_reward field is deprecated and is no longer used in the x/distribution module's reward mechanism. (staticcheck)
lint: x/distribution/migrations/v3/migrate.go#L28
SA1019: currParams.BonusProposerReward is deprecated: The bonus_proposer_reward field is deprecated and is no longer used in the x/distribution module's reward mechanism. (staticcheck)
lint: x/distribution/keeper/keeper.go#L69
SA1019: sdkerrors.Wrapf is deprecated: functionality of this package has been moved to it's own module: (staticcheck)
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/andromedad/andromedad. Supported file pattern: go.sum