20 lines
420 B
Go
20 lines
420 B
Go
package auth
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
)
|
|
|
|
// Register concrete types on codec codec for default AppAccount
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
cdc.RegisterInterface((*Account)(nil), nil)
|
|
cdc.RegisterConcrete(&BaseAccount{}, "auth/Account", nil)
|
|
cdc.RegisterConcrete(StdTx{}, "auth/StdTx", nil)
|
|
}
|
|
|
|
var msgCdc = codec.New()
|
|
|
|
func init() {
|
|
RegisterCodec(msgCdc)
|
|
codec.RegisterCrypto(msgCdc)
|
|
}
|