Merge pull request #1532 : Add Codec.Seal

fix wire
This commit is contained in:
Joon
2018-07-05 12:04:21 -04:00
committed by Rigel
parent 1d12985e56
commit 22ec6ad98d
7 changed files with 12 additions and 2 deletions
+2
View File
@@ -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
}
+3
View File
@@ -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
}