Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow chaincode to chaincode invoke set event #3764

Open
sandeepnRES opened this issue Nov 3, 2022 · 2 comments
Open

Allow chaincode to chaincode invoke set event #3764

sandeepnRES opened this issue Nov 3, 2022 · 2 comments

Comments

@sandeepnRES
Copy link
Member

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 sandeepnRES changed the title Allow chaincode to chaincode invoke emit event Allow chaincode to chaincode invoke set event Nov 3, 2022
@pras-spydra
Copy link

pras-spydra commented Jul 24, 2023

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

@owkraju
Copy link

owkraju commented May 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants