Re: calling a methods chaincode from a different method in the same chaincode #fabric-chaincode
Tsvetan Georgiev
Hi Malik, The contract API is used to invoke a chaincode usually deployed as separate instance (could be on the same or different channel). When you need to call a method inside your chaincode you just call that method instead of using the invoke API. If you need to have clear separation of the functionalities you better separate them and deploy as different chaincodes. That way you can use the contract API to call a chaincode from a chaincode. I suggest to go through the following documentation (helps a lot to design properly your chaincodes): https://hyperledger-fabric.readthedocs.io/en/release-2.3/developapps/chaincodenamespace.html And cross chaincode access is described here: https://hyperledger-fabric.readthedocs.io/en/release-2.3/developapps/chaincodenamespace.html#cross-chaincode-access
---- On Tue, 30 Mar 2021 06:30:43 -0400 Marek Malik <info@...> wrote ----
|
|||||||
|