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