diff --git a/x/bandoracle/module.go b/x/bandoracle/module.go index 3173cb7a2..1a5ba711a 100644 --- a/x/bandoracle/module.go +++ b/x/bandoracle/module.go @@ -60,10 +60,6 @@ func (AppModuleBasic) Name() string { return types.ModuleName } -func (AppModuleBasic) RegisterCodec(cdc *codec.LegacyAmino) { - types.RegisterCodec(cdc) -} - func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { types.RegisterCodec(cdc) } diff --git a/x/bandoracle/types/codec.go b/x/bandoracle/types/codec.go index 4faf682ab..5f6ee3f10 100644 --- a/x/bandoracle/types/codec.go +++ b/x/bandoracle/types/codec.go @@ -21,6 +21,5 @@ func RegisterInterfaces(registry cdctypes.InterfaceRegistry) { var ( Amino = codec.NewLegacyAmino() - // ModuleCdc = codec.NewAminoCodec(Amino) ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) ) diff --git a/x/esm/module.go b/x/esm/module.go index f40b057a5..7411bf9d4 100644 --- a/x/esm/module.go +++ b/x/esm/module.go @@ -47,12 +47,8 @@ func (AppModuleBasic) Name() string { return types.ModuleName } -func (AppModuleBasic) RegisterCodec(cdc *codec.LegacyAmino) { - types.RegisterCodec(cdc) -} - func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { - types.RegisterCodec(cdc) + types.RegisterLegacyAminoCodec(cdc) } // RegisterInterfaces registers the module's interface types diff --git a/x/esm/types/codec.go b/x/esm/types/codec.go index 7cc928918..6db43d492 100644 --- a/x/esm/types/codec.go +++ b/x/esm/types/codec.go @@ -10,7 +10,7 @@ import ( govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1" ) -func RegisterCodec(cdc *codec.LegacyAmino) { +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { cdc.RegisterConcrete(&MsgDepositESM{}, "comdex/esm/deposit-esm", nil) cdc.RegisterConcrete(&MsgExecuteESM{}, "comdex/esm/execute-esm", nil) cdc.RegisterConcrete(&MsgKillRequest{}, "comdex/esm/stop-all-actions", nil) @@ -40,7 +40,7 @@ var ( ) func init() { - RegisterCodec(Amino) + RegisterLegacyAminoCodec(Amino) cryptocodec.RegisterCrypto(Amino) Amino.Seal() } diff --git a/x/lend/module.go b/x/lend/module.go index 0c6c1243c..12eff5b0b 100644 --- a/x/lend/module.go +++ b/x/lend/module.go @@ -45,10 +45,6 @@ func (AppModuleBasic) Name() string { return types.ModuleName } -//func (AppModuleBasic) RegisterCodec(cdc *codec.LegacyAmino) { -// types.RegisterCodec(cdc) -//} - func (AppModuleBasic) RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { types.RegisterLegacyAminoCodec(cdc) }