Skip to content

Commit

Permalink
Backport setEvent information to 2.2
Browse files Browse the repository at this point in the history
closes #2958
Signed-off-by: D <d_kelsey@uk.ibm.com>
  • Loading branch information
D authored and denyeart committed Sep 29, 2021
1 parent acf88a0 commit fcdc0b5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/source/developapps/transactioncontext.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ The APIs in the stub fall into the following categories:

* [setEvent()](https://hyperledger.github.io/fabric-chaincode-node/{BRANCH}/api/fabric-shim.ChaincodeStub.html#setEvent__anchor)

Smart contracts use this API to add user events to a transaction response.
Smart contracts use this API to add an event to a transaction response.
Note that only a single event can be created in a transaction, and must
originate from the outer-most contract when contracts invoke each other via `invokeChaincode`.
See interaction point **(5)**. These events are ultimately recorded on the
blockchain and sent to listening applications at interaction point
**(11)**.
Expand Down

0 comments on commit fcdc0b5

Please sign in to comment.