通過在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 回答
- 0 關注
- 442 瀏覽
添加回答
舉報
0/150
提交
取消
