Skip to content

Commit

Permalink
Merge pull request #159 from comdex-official/vault-codec
Browse files Browse the repository at this point in the history
amino codec changes for vault
  • Loading branch information
dheerajkd30 authored May 31, 2022
2 parents 6832a24 + 9bdf515 commit 01e0aab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion x/vault/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package types
import (
"github.com/cosmos/cosmos-sdk/codec"
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/cosmos/cosmos-sdk/types/msgservice"
Expand Down Expand Up @@ -39,10 +40,11 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {

var (
amino = codec.NewLegacyAmino()
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
ModuleCdc = codec.NewAminoCodec(amino)
)

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

0 comments on commit 01e0aab

Please sign in to comment.