fabric icon indicating copy to clipboard operation
fabric copied to clipboard

Allow chaincode to chaincode invoke set event

Open sandeepnRES opened this issue 3 years ago • 2 comments

This is to request a feature. Lets say Client C calls a chaincode S, and that chaincode (using chaincode to chaincode call) invokes chaincode T, now if T sets some event, currently that event is lost, as per docs:

// Only a single event can be included in a transaction, and must originate
// from the outer-most invoked chaincode in chaincode-to-chaincode scenarios.

But I read that same transaction context is used to do chaincode to chaincode invocation, so why can't the event set in chaincode T be passed to the whole transaction, and thus that event can also be emitted (if S doesn't emit any other event later)?

This feature is very much required for a project that our team is working on.

sandeepnRES avatar Nov 03 '22 10:11 sandeepnRES

I am also working on something that requires this. @sandeepnRES did you get to solve this? or implemented differently?

pras-spydra avatar Jul 24 '23 09:07 pras-spydra

Hi @sandeepnRES, still you're working on it because i have one approach but i have few doubts.

  1. we are concerned about the events only or else we are concerned about put/get states in the chaincode T.
  2. if we are concerned about only the event then i have one approach

owkraju avatar May 23 '24 11:05 owkraju