mesg-foundation/core

View on GitHub
x/ownership/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(MsgWithdraw{}, "ownership/withdraw", nil)
}

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

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