0

I want to invoke another chaincode inside a chaincode using ctx.stub.invokeChaincode("called chaincode name", ["the name of the function (transaction) of the called chaincode", args]), and my both chaincodes has been instantiated on the same channel, but I get the following error:

Calling chaincode Invoke() returned error response [Error: You've asked to invoke a function that does not exist: Confirm.confirmData]. Sending ERROR message back to peer.

I am not sure if I am wrong with defining the list chainCode arguments.

lepe
  • 24,677
  • 9
  • 99
  • 108
ethertest
  • 317
  • 4
  • 13
  • Seem that your function name is wrong. Check if the function name it's similar to the chaincode function name. – Alexander Yammine Dec 04 '19 at 21:33
  • No, the function name is the same as I defined in my invoked chaincode. – ethertest Dec 04 '19 at 21:55
  • @ethertest I hope you have been following these [considerations](https://hyperledger-fabric.readthedocs.io/en/release-1.4/developapps/chaincodenamespace.html#considerations) for cross chaincode interactions – Udyan Sharma Dec 05 '19 at 18:21

0 Answers0