Skip to content

Commit ad21117

Browse files
authored
doc: add caveat for setEvent in nested invocations (#502)
Signed-off-by: Sourav <souravkjha2007@gmail.com>
1 parent c560719 commit ad21117

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/fabric-shim/lib/stub.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ class ChaincodeStub {
763763
* Only a single chaincode event can be included in a transaction.
764764
* If setEvent() is called multiple times only the last event will be included in the transaction.
765765
* The event must originate from the outer-most invoked chaincode in chaincode-to-chaincode scenarios.
766+
* If Chaincode A invokes Chaincode B, and Chaincode B calls setEvent, that event will be ignored by the peer.
766767
* The marshaled ChaincodeEvent will be available in the transaction's ChaincodeAction.events field.
767768
* @param {string} name Name of the event
768769
* @param {byte[]} payload A payload can be used to include data about the event

0 commit comments

Comments
 (0)