Search in sources :

Example 1 with ChaincodeAction

use of org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeAction in project fabric-sdk-java by hyperledger.

the class ChaincodeActionDeserializer method getEvent.

ChaincodeEvent getEvent() {
    ChaincodeAction ca = getChaincodeAction();
    ByteString eventsBytes = ca.getEvents();
    if (eventsBytes == null || eventsBytes.isEmpty()) {
        return null;
    }
    return new ChaincodeEvent(eventsBytes);
}
Also used : ChaincodeAction(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeAction) ByteString(com.google.protobuf.ByteString)

Aggregations

ByteString (com.google.protobuf.ByteString)1 ChaincodeAction (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeAction)1