-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
rename RegisterCodec to RegisterLegacyAminoCodec #7243
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7243 +/- ##
==========================================
- Coverage 54.92% 54.22% -0.70%
==========================================
Files 575 425 -150
Lines 39544 30565 -8979
==========================================
- Hits 21718 16574 -5144
+ Misses 16032 12661 -3371
+ Partials 1794 1330 -464 |
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.
Thanks @anilcse, good idea!
There's also the New() function in /codec/amino.go
, I think it would be good to replace codec.New()
by codec.NewLegacyAmino()
, wdyt? In this PR or a later one.
Updated |
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.
good to go if tests pass
Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
…e_register_codec # Conflicts: # x/distribution/client/cli/tx_test.go
…-sdk into anil/rename_register_codec
* rename RegisterCodec to RegisterLegacyAminoCodec * Add changelog * gofmt * rename codec.New() to codec.NewLegacyAmino() * Add change log * Update CHANGELOG.md Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com> * Fix Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Amaury Martiny <amaury.martiny@protonmail.com>
Description
Module's
RegisterCodec
is bit ambiguous, it states that it registers any given codec but registers onlyLegacyAmino
codec.RegisterLegacyAminoCodec
is self explanatoryRegisterCodec
toRegisterLegacyAminoCodec
codec.New()
tocodec.NewLegacyAmino()
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes