Closed thejdavid closed 7 years ago
build-chaincode
vp0_1 | src/build-chaincode/chaincode.go:123: cannot use new(SimpleChaincode) (type _SimpleChaincode) as type shim.Chaincode in argument to shim.Start: vp0_1 | *SimpleChaincode does not implement shim.Chaincode (wrong type for Init method) vp0_1 | have Init(_shim.ChaincodeStub, string, []string) ([]byte, error) vp0_1 | want Init(shim.ChaincodeStubInterface, string, []string) ([]byte, error)
@thejdavid Which version of the baseimage are you using? The boilerplate (and its chaincode) is made to work with fabric 0.5, that means version 0.0.10 for the baseimage. shim.ChaincodeStubInterface has been introduced since fabric 0.6 if I am not wrong.
A suggestion: before launching a deploy call in your network, always be sure your chaincode is deployable.
go build
and check the output in console.
I actually had a conflict with another docker image indeed forgot that step aswell Change tag to the fabric-baseimage: docker tag rikmoedt/fabric-baseimage hyperledger/fabric-baseimage (note: be sure you do not have already an image with the same tag, in that case, rename first the current hyperledger/fabric-baseimage to something else) Thanks!
The node server seems to work but still obviously can't login or anything :
localhost:7070 #=>
{"height":6,"currentBlockHash":"36X7z34lerZRd3LozSr/Qo6M1zX/4GoXoxhu95rwSvVM6iI5mChvOp3lptO9L07FZ3PnGY1wR+g6mJ/OKaGDMg==","previousBlockHash":"fmV/0Rtt4JJ7ZWZNEuEF00TtxMtYEXFWWj4GLG1hWd0PeZNE/tELXqNBWrMrWZXmcYbquQ9pujSWxpgLx4T34A=="}
Any help ?