mesg-foundation/core

View on GitHub
x/service/internal/types/codec.go

Summary

Maintainability
A
35 mins
Test Coverage
package types

import (
    "github.com/cosmos/cosmos-sdk/codec"
)

// RegisterCodec registers concrete types on codec
func RegisterCodec(cdc *codec.Codec) {
    cdc.RegisterConcrete(MsgCreate{}, "service/create", nil)
}

// ModuleCdc defines the module codec
var ModuleCdc *codec.Codec

func init() {
    ModuleCdc = codec.New()
    RegisterCodec(ModuleCdc)
    codec.RegisterCrypto(ModuleCdc)
    ModuleCdc.Seal()
}