fabric-samples
fabric-samples copied to clipboard
Can chaincode call other chaincode?
Chaincode can be seen as smart contract, but in Ethereum there may have smart contract call other contract. Is it possible to call other chaincode in Fabric if a peer install two chaincode in the same channel? If possible, how can I write a chaincode like this?
Of course, you can. see shim.ChaincodeStubInterface