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:
co-authored by
Amaury Martiny
Federico Kunze
parent
ebfb616d88
commit
64b6bb5270
+1
-1
@@ -23,7 +23,7 @@ func (cdc *LegacyAmino) Seal() {
|
||||
cdc.Amino.Seal()
|
||||
}
|
||||
|
||||
func New() *LegacyAmino {
|
||||
func NewLegacyAmino() *LegacyAmino {
|
||||
return &LegacyAmino{amino.NewCodec()}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user