As a blockchain administrator
I want to query all approved chaincode when using Fabric v3
So that I can query all chaincode approvals for a channel instead of query each explicitly by name
Fabric v3 allows the QueryApprovedChaincodeDefinition lifecycle transaction function to:
- Omit a sequence ID to query the latest sequence number of a given chaincode definition.
- Specify only the channel name to query all approved chaincode definitions on the channel.
These capabilities should be tested in the end-to-end tests when using Fabric v3. If they add value, additional unit tests should be added for these scenarios. This behaviour should be documented in the Godoc for the chaincode.Gateway.QueryApproved function.
See the Fabric CLI examples for further information.