hyperledger / fabric-admin-sdk

Fabric SDK for Admin Capability services
Apache License 2.0
31 stars 19 forks source link

Refactor of chaincode approve #64

Closed bestbeforetoday closed 1 year ago

bestbeforetoday commented 1 year ago

Simplify Approve() function signature, similar to Install() and QueryInstalled().

Use fabric-gateway to simplify implementation and avoid need to deal with orderers when submitting the transaction. This both simplifies the client application (as it doesn't need to worry about orderers or gRPC connections to them) and avoid potential problems when BFT ordering is introduced (which will require the transaction to be submitted to multiple orderers). The Gateway service takes care of the submit details.

Refactor e2e test to remove duplication of parallel invocation code.