issue for ee5b85c20f70b07bfd4fb6fb4dd023d49d9cbfc9 commit
Maheshbiradar opened this issue · comments
Getting error for learn chain code
.\chaincode_finished.go:31: cannot use new(SimpleChaincode) (type *Simp
de) as type shim.Chaincode in argument to shim.Start:
*SimpleChaincode does not implement shim.Chaincode (wrong type
method)
have Init(shim.ChaincodeStubInterface, string, []string
, error)
want Init(shim.ChaincodeStubInterface) ([]byte, error)
Please help..
@Maheshbiradar The chaincode Init,Query and Invoke interfaces were changed a while back to take just shim.ChaincodeStubInterface
as parameters. Should work with that change. chaincode_example02 can provide you some code you can copy paste.
Hope this helps.