Search code examples
hyperledger-fabrichyperledger-chaincode

Failed to catch a chaincode event when the the first chaincode who set the event is invoked by a second chaincode


I'm trying to catch an event payload from a chaincode A deployed in my infra, when I tried to catch the event payload directly from the chaincode A, it works, but when I try to catch the same event payload when a chaincode A is invoked by another chaincode B, it doesn't work. Any help ?


Solution

  • In the latest fabric documentation, the limitation is described that only the top level chaincode can call setEvent to register a chaincode event. https://hlf.readthedocs.io/en/latest/developapps/transactioncontext.html#stub