Rename *codec.Codec to *codec.LegacyAmino (#6991)

* Rename *codec.Codec to *codec.LegacyAmino

* Implement requested changes

Co-authored-by: Aaron Craelius <aaron@regen.network>
This commit is contained in:
dauTT
2020-08-10 19:41:21 +00:00
committed by GitHub
co-authored by Aaron Craelius
parent 769387b754
commit 20c80cfd44
148 changed files with 422 additions and 422 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ import (
//
// NOTE: This codec will be deprecated in favor of AppCodec once all modules are
// migrated.
func MakeCodec(bm module.BasicManager) *codec.Codec {
func MakeCodec(bm module.BasicManager) *codec.LegacyAmino {
cdc := codec.New()
bm.RegisterCodec(cdc)
@@ -24,7 +24,7 @@ func MakeCodec(bm module.BasicManager) *codec.Codec {
return cdc
}
func RegisterCodec(cdc *codec.Codec) {
func RegisterCodec(cdc *codec.LegacyAmino) {
vesting.RegisterCodec(cdc)
sdk.RegisterCodec(cdc)
cryptocodec.RegisterCrypto(cdc)