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

style: various linting fixes #15675

Merged
merged 10 commits into from
Apr 3, 2023
Merged

style: various linting fixes #15675

merged 10 commits into from
Apr 3, 2023

Conversation

tac0turtle
Copy link
Member

Description

fix various linting issues


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

Amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewAminoCodec(Amino)
)
var Amino = codec.NewLegacyAmino()
Copy link
Member

@julienrbrt julienrbrt Apr 3, 2023

Choose a reason for hiding this comment

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

Given that this ModuleCdc was exported, we need an API breaking changelog for it, and tell that Amino is now public.
Chains were doing as the SDK and named their module codec ModuleCdc as well (https://github.com/search?type=code&auto_enroll=true&q=%22.ModuleCdc%22+language%3AGo&l=Go).

tac0turtle and others added 3 commits April 3, 2023 15:16
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

lgtm

amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewAminoCodec(amino)
)
var amino = codec.NewLegacyAmino()
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this one be public now?

Copy link
Member Author

Choose a reason for hiding this comment

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

why was moduleCdc public? its only used internally.

Copy link
Member

@julienrbrt julienrbrt Apr 3, 2023

Choose a reason for hiding this comment

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

🤷🏾‍♂️ it is just that someone could have been relying on a module's ModuleCdc now. And that you've made some of them now public, and some others not.

Copy link
Member Author

Choose a reason for hiding this comment

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

if possible id rather break this for people and tell them to use the tx encode/decode apis

Copy link
Member

Choose a reason for hiding this comment

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

Sure, but then I'd argue that we should break them consistently.
Some Amino variable la that have been put public in this PR should be put back private.

Copy link
Member Author

Choose a reason for hiding this comment

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

true, ill do it in a follow up pr

amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewAminoCodec(amino)
)
var aminoCdc = codec.NewLegacyAmino()
Copy link
Member

Choose a reason for hiding this comment

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

ditto.

Co-authored-by: Facundo Medica <[email protected]>
@julienrbrt julienrbrt added the A:automerge Automatically merge PR once all prerequisites pass. label Apr 3, 2023
@mergify mergify bot merged commit 38c7c94 into main Apr 3, 2023
@mergify mergify bot deleted the marko/linting_5 branch April 3, 2023 17:00
@julienrbrt julienrbrt mentioned this pull request Apr 6, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants