laconicd/types/codec.go
2018-11-28 14:19:22 -08:00

18 lines
322 B
Go

package types
import (
"github.com/cosmos/cosmos-sdk/codec"
)
var typesCodec = codec.New()
func init() {
RegisterCodec(typesCodec)
}
// RegisterCodec registers all the necessary types with amino for the given
// codec.
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(&Account{}, "types/Account", nil)
}