我有一个由3个orgs和两个频道组成的网络。
channelone:org1,org2,chaincode- fabcar
信道两种:org1,org3,链码- fabphone
我想用法布卡查询链码--法布卡电话。
发布于 2019-10-15 15:12:46
您可以使用stub.InvokeChaincode方法从另一个链码中调用-
response := stub.InvokeChaincode(chaincodeName, invokeArgs, channelName)
if response.Status != shim.OK {
return nil
}
return response.Payload
有关详细信息,请参阅- https://sourcegraph.com/github.com/hyperledger/fabric/-/blob/core/chaincode/shim/interfaces.go#L62:3
https://stackoverflow.com/questions/51630962
复制相似问题