Skip to content
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.

issue for ee5b85c20f70b07bfd4fb6fb4dd023d49d9cbfc9 commit #2409

Open
Maheshbiradar opened this issue Dec 25, 2016 · 1 comment
Open

issue for ee5b85c20f70b07bfd4fb6fb4dd023d49d9cbfc9 commit #2409

Maheshbiradar opened this issue Dec 25, 2016 · 1 comment

Comments

@Maheshbiradar
Copy link

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..

@muralisrini
Copy link
Contributor

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants