Skip to content

Commit

Permalink
Merge pull request #163 from comdex-official/vault-codec
Browse files Browse the repository at this point in the history
lcoker module register changes
  • Loading branch information
dheerajkd30 authored May 31, 2022
2 parents e9f8672 + 67d9342 commit 08335f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions x/locker/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions x/locker/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -36,7 +36,7 @@ var (
)

func init() {
RegisterCodec(amino)
RegisterLegacyAminoCodec(amino)
cryptocodec.RegisterCrypto(amino)
amino.Seal()
}

0 comments on commit 08335f5

Please sign in to comment.