You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 30, 2018. It is now read-only.
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..
The text was updated successfully, but these errors were encountered:
@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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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..
The text was updated successfully, but these errors were encountered: