Skip to content
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

feat: stargate: Bump cosmos-sdk to v0.42.6 #151

Merged
merged 3 commits into from
Jul 1, 2021

Conversation

youngjoon-lee
Copy link
Contributor

Closes #146

@youngjoon-lee youngjoon-lee linked an issue Jun 30, 2021 that may be closed by this pull request
Copy link
Contributor

@gyuguen gyuguen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines +1 to +5
issues:
exclude-rules:
- text: "SA1019: codec.LegacyAmino is deprecated"
linters:
- staticcheck
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From cosmos-sdk v0.42.6, the golangci-lint returns the following error:

app/params/encoding.go:15:21: SA1019: codec.LegacyAmino is deprecated: LegacyAmino defines a wrapper for an Amino codec that properly handles protobuf types with Any's (staticcheck)
        Amino             *codec.LegacyAmino
                           ^
x/aol/types/codec.go:10:25: SA1019: codec.LegacyAmino is deprecated: LegacyAmino defines a wrapper for an Amino codec that properly handles protobuf types with Any's (staticcheck)
func RegisterCodec(cdc *codec.LegacyAmino) {
                        ^
x/aol/keeper/query.go:14:45: SA1019: codec.LegacyAmino is deprecated: LegacyAmino defines a wrapper for an Amino codec that properly handles protobuf types with Any's (staticcheck)
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier {
                                            ^

So, this check must be ignored until Amino is faded-out completely.
The reference of this yaml file is https://github.com/cosmos/cosmos-sdk/blob/a7e19ad4588bcceeeeab522f5807b9ff22e91a8c/.golangci.yml#L59

@youngjoon-lee youngjoon-lee merged commit 9687b05 into stargate Jul 1, 2021
@youngjoon-lee youngjoon-lee deleted the ft/108/cosmos-v0.42.6 branch July 1, 2021 00:54
@youngjoon-lee youngjoon-lee added this to the v2.0.0 milestone Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stargate: Upgrade cosmos-sdk to v0.42.6
2 participants