Error while invoking Init function in chaincode: Cannot use metadata. Metadata did not match schema
Hi, I am trying to deploy a chaincode in my fabric network with init function invoke. My chaincode is getting committed on peers but I am getting an error message while invoking init function.
Note: I am running my custom chaincode on test-network sample setup.
Please find the following attached screenshot to see the proper error message.

Let me know the cause of this error.
@mbwhite any ideas?
@denyeart This error was caused by Peer package included in chaincode. I just removed Peer package and changed returnType of chaincode functions from Peer.Response to (Asset, error). Is there any new change introduced in Peer chaincode package which requires some parameters to be passed? I remember it used to work completely fine when I was working on fabric 1.4 version.
@Dimple-Kanwar are you able to share your code please that caused the issue.
Are you using the fabric-contract-go ? or fabric-shim-go?