parent
1d12985e56
commit
22ec6ad98d
|
@ -769,6 +769,7 @@ func MakeCodec() *wire.Codec {
|
|||
crypto.RegisterAmino(cdc)
|
||||
cdc.RegisterInterface((*auth.Account)(nil), nil)
|
||||
cdc.RegisterConcrete(&auth.BaseAccount{}, "cosmos-sdk/BaseAccount", nil)
|
||||
cdc.Seal()
|
||||
return cdc
|
||||
}
|
||||
|
||||
|
|
|
@ -197,6 +197,7 @@ func MakeCodec() *wire.Codec {
|
|||
auth.RegisterWire(cdc)
|
||||
sdk.RegisterWire(cdc)
|
||||
wire.RegisterCrypto(cdc)
|
||||
cdc.Seal()
|
||||
return cdc
|
||||
}
|
||||
|
||||
|
|
|
@ -103,6 +103,8 @@ func MakeCodec() *wire.Codec {
|
|||
cdc.RegisterInterface((*auth.Account)(nil), nil)
|
||||
cdc.RegisterConcrete(&types.AppAccount{}, "basecoin/Account", nil)
|
||||
|
||||
cdc.Seal()
|
||||
|
||||
return cdc
|
||||
}
|
||||
|
||||
|
|
|
@ -113,6 +113,9 @@ func MakeCodec() *wire.Codec {
|
|||
// Register AppAccount
|
||||
cdc.RegisterInterface((*auth.Account)(nil), nil)
|
||||
cdc.RegisterConcrete(&types.AppAccount{}, "democoin/Account", nil)
|
||||
|
||||
cdc.Seal()
|
||||
|
||||
return cdc
|
||||
}
|
||||
|
||||
|
|
|
@ -48,6 +48,8 @@ func makeCodec() *wire.Codec {
|
|||
cdc.RegisterInterface((*Payload)(nil), nil)
|
||||
cdc.RegisterConcrete(seqOracle{}, "test/oracle/seqOracle", nil)
|
||||
|
||||
cdc.Seal()
|
||||
|
||||
return cdc
|
||||
}
|
||||
|
||||
|
|
|
@ -44,6 +44,5 @@ var Cdc *Codec
|
|||
func init() {
|
||||
cdc := NewCodec()
|
||||
RegisterCrypto(cdc)
|
||||
Cdc = cdc
|
||||
//Cdc = cdc.Seal() // TODO uncomment once amino upgraded to 0.9.10
|
||||
Cdc = cdc.Seal()
|
||||
}
|
||||
|
|
|
@ -53,6 +53,8 @@ func makeCodec() *wire.Codec {
|
|||
cdc.RegisterConcrete(&auth.BaseAccount{}, "test/ibc/Account", nil)
|
||||
wire.RegisterCrypto(cdc)
|
||||
|
||||
cdc.Seal()
|
||||
|
||||
return cdc
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue