Compatibity between daml java sdk and ledger api
- brijg11OP
HI
Is there an easy way to convert the CreatedEvent from javaapi to that in the ledger api.
https://docs.daml.com/app-dev/bindings-java/javadocs/com/daml/ledger/javaapi/data/CreatedEvent.htmlI need to instantiate a specific Contract object but that requires the created event from java api but what I have is the created event from ledger api using transaction service.
- cocreature
There is a
toProtomethod to do the conversion CreatedEvent - Stephen
There’s also a
fromProtostatic method defined onCreatedEvent, going the other direction, which might be what you want. - brijg11
Thanks both. This works.