Skip to content

feat[WIP]: indexer in x/staking #75614

feat[WIP]: indexer in x/staking

feat[WIP]: indexer in x/staking #75614

Triggered via pull request November 19, 2024 12:37
Status Failure
Total duration 3m 22s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
golangci-lint
SA1019: sdk.LengthPrefixedAddressKey is deprecated: LengthPrefixedAddressKey implements an SDK backwards compatible indexing key encoder for addresses. The status quo in the SDK is that address keys are length prefixed even when they're the last part of a composite key. This should never be used unless to retain state compatibility. For example, a composite key composed of `[string, address]` in theory would need you only to define a way to understand when the string part finishes, we usually do this by appending a null byte to the string, then when you know when the string part finishes, it's logical that the part which remains is the address key. In the SDK instead we prepend to the address key its length too. (staticcheck)
golangci-lint
directive `//nolint: staticcheck // sdk.LengthPrefixedAddressKey is needed to retain state compatibility` is unused for linter "staticcheck" (nolintlint)
golangci-lint
Process completed with exit code 2.
golangci-lint
The following actions use a deprecated Node.js version and will be forced to run on node20: technote-space/[email protected]. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/