From 67d93421660bcb113178371f907df0045967cde9 Mon Sep 17 00:00:00 2001 From: dheerajkd30 Date: Tue, 31 May 2022 16:45:45 +0530 Subject: [PATCH] lcoker module register changes --- x/locker/module.go | 6 +----- x/locker/types/codec.go | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/x/locker/module.go b/x/locker/module.go index 04eb75b91..73ef286a5 100644 --- a/x/locker/module.go +++ b/x/locker/module.go @@ -44,12 +44,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/locker/types/codec.go b/x/locker/types/codec.go index af17e9067..8aedc934f 100644 --- a/x/locker/types/codec.go +++ b/x/locker/types/codec.go @@ -9,7 +9,7 @@ import ( "github.com/cosmos/cosmos-sdk/types/msgservice" ) -func RegisterCodec(cdc *codec.LegacyAmino) { +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { // this line is used by starport scaffolding # 2 cdc.RegisterConcrete(&MsgCreateLockerRequest{}, "comdex/locker/MsgCreateLockerRequest", nil) cdc.RegisterConcrete(&MsgDepositAssetRequest{}, "comdex/locker/MsgDepositAssetRequest", nil) @@ -36,7 +36,7 @@ var ( ) func init() { - RegisterCodec(amino) + RegisterLegacyAminoCodec(amino) cryptocodec.RegisterCrypto(amino) amino.Seal() }