laconicd-deprecated/types/codec.go

18 lines
322 B
Go
Raw Normal View History

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