rename RegisterCodec to RegisterLegacyAminoCodec (#7243)

* 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>
This commit is contained in:
Anil Kumar Kammari
2020-09-07 14:47:12 +00:00
committed by GitHub
co-authored by Amaury Martiny Federico Kunze
parent ebfb616d88
commit 64b6bb5270
91 changed files with 256 additions and 257 deletions
+3 -3
View File
@@ -8,9 +8,9 @@ import (
vesting "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
)
func RegisterCodec(cdc *codec.LegacyAmino) {
vesting.RegisterCodec(cdc)
sdk.RegisterCodec(cdc)
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
vesting.RegisterLegacyAminoCodec(cdc)
sdk.RegisterLegacyAminoCodec(cdc)
cryptocodec.RegisterCrypto(cdc)
}