hyperledger / hyperledger/fabric

Allow chaincode to chaincode invoke set event

Open
#3,764 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
16.7k
Forks
9.1k
Avg merge
5h 38m
Merged PRs (30d)
26

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.