Remove need for full party to deserialize anonymous parties

This commit is contained in:
Ross Nicoll 2017-03-03 17:46:24 +00:00
parent af2ee6e4ad
commit cb91842f18

View File

@ -141,8 +141,7 @@ object JsonSupport {
val mapper = parser.codec as PartyObjectMapper
// TODO this needs to use some industry identifier(s) instead of these keys
val key = CompositeKey.parseFromBase58(parser.text)
val party = mapper.partyFromKey(key) ?: throw JsonParseException(parser, "Could not find a Party with key ${parser.text}")
return party.toAnonymous()
return AnonymousParty(key)
}
}