mirror of
https://github.com/corda/corda.git
synced 2025-04-07 11:27:01 +00:00
Remove need for full party to deserialize anonymous parties
This commit is contained in:
parent
af2ee6e4ad
commit
cb91842f18
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user