doupa2871 2017-01-25 05:15 采纳率: 100%
浏览 236

Go编译错误:无法使用new(SimpleChaincode)

While compiling an application of the 'DemoChainCode' from IBM Bluemix docs I'm continously getting this error :

.\Asgn5.go:28: cannot use new(SimpleChaincode) (type *SimpleChaincode) as type s him.Chaincode in argument to shim.Start: *SimpleChaincode does not implement shim.Chaincode (wrong type for Initmethod) have Init(shim.ChaincodeStubInterface, string, []string) ([]byte, error) want Init(shim.ChaincodeStubInterface) ([]byte, error)

What could be going wrong here?

  • 写回答

1条回答 默认 最新

  • douxing5598 2017-02-07 14:54
    关注

    I think this guidance from the hyperledger folks should help:

    https://github.com/IBM-Blockchain/learn-chaincode/blob/master/docs/setup.md#hyperledger-fabric

    The issue is that there are mutually incompatible releases of hyperledger.

    I think (!) for Bluemix, you will need v0.5

    评论
    编辑
    预览

    报告相同问题?

    手机看
    程序员都在用的中文IT技术交流社区

    程序员都在用的中文IT技术交流社区

    专业的中文 IT 技术社区,与千万技术人共成长

    专业的中文 IT 技术社区,与千万技术人共成长

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

    客服 返回
    顶部