为了账号安全,请及时绑定邮箱和手机立即绑定

Go中的Chaincode-Hyperledger v 1.0-太多参数无法返回

Go中的Chaincode-Hyperledger v 1.0-太多参数无法返回

Go
慕后森 2021-04-08 15:19:58
通过在Hyperledger中运行我的Chaincode程序之一,我正在错误堆栈以下。我正在尝试构建一个小型应用程序,该应用程序将插入用户名和状态的键值对,并使用它可以插入或读取分类帐中的值:go build# _/home/ubuntu/go/src/Chaincodeexample./Samplesupplychain.go:28:9: too many arguments to return        have (nil, error)        want (peer.Response)....对于我代码中的所有其他功能,此操作继续进行,最终功能如下: ./Samplesupplychain.go:80:33: too many arguments in call to Checkuploadstatus        have (shim.ChaincodeStubInterface, []string)        want (shim.ChaincodeStubInterface)./Samplesupplychain.go:90:26: too many arguments in call to CreateUser        have (shim.ChaincodeStubInterface, []string)        want (shim.ChaincodeStubInterface)./Samplesupplychain.go:92:36: undefined: username./Samplesupplychain.go:92:36: too many errors任何帮助将不胜感激,因为我目前正在使用Hyperledger v 1.0.0
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 335 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信