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
+1 -1
View File
@@ -23,7 +23,7 @@ func (cdc *LegacyAmino) Seal() {
cdc.Amino.Seal()
}
func New() *LegacyAmino {
func NewLegacyAmino() *LegacyAmino {
return &LegacyAmino{amino.NewCodec()}
}
+1 -1
View File
@@ -14,7 +14,7 @@ import (
)
func createTestCodec() *codec.LegacyAmino {
cdc := codec.New()
cdc := codec.NewLegacyAmino()
cdc.RegisterInterface((*testdata.Animal)(nil), nil)
cdc.RegisterConcrete(testdata.Dog{}, "testdata/Dog", nil)
+1 -1
View File
@@ -12,7 +12,7 @@ import (
var Cdc *codec.LegacyAmino
func init() {
Cdc = codec.New()
Cdc = codec.NewLegacyAmino()
cryptocodec.RegisterCrypto(Cdc)
codec.RegisterEvidences(Cdc)
Cdc.Seal()