Allow chaincode to chaincode invoke set event
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.
I am also working on something that requires this. @sandeepnRES did you get to solve this? or implemented differently?
Hi @sandeepnRES, still you're working on it because i have one approach but i have few doubts.
- we are concerned about the events only or else we are concerned about put/get states in the chaincode T.
- if we are concerned about only the event then i have one approach