hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.78k stars 3.37k forks source link

Add Go chaincode for asset-transfer-events #1189

Closed bestbeforetoday closed 6 months ago

bestbeforetoday commented 6 months ago

There were recently questions on how to emit chaincode events from Go smart contracts: hyperledger/fabric-gateway#698

This implementation is based on the asset-transfer-basic chaincode (as the README already suggests) and does not include the private data used by the other language implementations. I don't know why private data is necessary to demonstrate chaincode eventing.

denyeart commented 6 months ago

Cool, thanks.

I'll merge with the failing SBE test since it is not related.

I've opened https://github.com/hyperledger/fabric-samples/issues/1190 for the failing SBE test. I didn't see an obvious reason for the failure since the other Java chaincodes are still working...