1

I tried to implement the private data collections in fabric 2.0 network.I have faced error when I tried to invoke chaincode with the transient data flag. And it is unable to recognize the method ("priv").

 Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error: You've asked to invoke a function that does not exist: priv"

The "priv" method in chaincode is fairly simple.It is using the putPrivateData() method to store the private data.

Shubham Jaiswal
  • 570
  • 5
  • 11

1 Answers1

0

I have fixed it.The issue was related to the version of shim api in package.json of chaincode.

Shubham Jaiswal
  • 570
  • 5
  • 11