第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

無(wú)法在 Ubuntu 終端上從我自己的 github 運(yùn)行超級(jí)賬本鏈代碼

無(wú)法在 Ubuntu 終端上從我自己的 github 運(yùn)行超級(jí)賬本鏈代碼

Go
BIG陽(yáng) 2022-04-20 17:29:03
我可以從以下官方路徑運(yùn)行鏈代碼: https ://github.com/ibm-blockchain/learn-chaincode/finished github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02# peer chaincode deploy -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02 -c '{"Function":"init", "Args": ["a","100", "b", "200"]}'但無(wú)法從我自己的 github 路徑運(yùn)行 chainncode: https ://github.com/jeffyxia/hyperledger/trade# peer chaincode deploy -p https://github.com/jeffyxia/hyperledger/trade -c '{"Function":"init", "Args": ["a","100", "b", "200"]}'錯(cuò)誤信息是:錯(cuò)誤:構(gòu)建鏈代碼時(shí)出錯(cuò):rpc 錯(cuò)誤:代碼 = 2 desc = 獲取錯(cuò)誤chaincode package bytes: Error getting code 'go get' failed with error: "exit status 2"# github.com/jeffyxia/hyperledger/hello_world/go/_usercode_/519629987/src/github.com/jeffyxia/hyperledger/hello_world/chaincode_example01.go:31: cannot use new(SimpleChaincode) (type *SimpleChaincode) as type shim.Chaincode in argument to shim.Start:    *SimpleChaincode does not implement shim.Chaincode (wrong type for Init method)        have Init(*shim.ChaincodeStub, string, []string) ([]byte, error)        want Init(shim.ChaincodeStubInterface, string, []string) ([]byte, error)補(bǔ)充資料:Ubuntu 16.04 沒(méi)有g(shù)o語(yǔ)言環(huán)境,使用PBFT算法。如何解決這個(gè)問(wèn)題,謝謝。
查看完整描述

1 回答

?
catspeake

TA貢獻(xiàn)1111條經(jīng)驗(yàn) 獲得超0個(gè)贊

首先,您可能希望使用其官方存儲(chǔ)庫(kù)中的最新版本 Fabric。其次,錯(cuò)誤是不言自明的,


  *SimpleChaincode does not implement shim.Chaincode (wrong type for Init method)

        have Init(*shim.ChaincodeStub, string, []string) ([]byte, error)

        want Init(shim.ChaincodeStubInterface, string, []string) ([]byte, error)

您需要替換 stub *shim.ChaincodeStub為stub shim.ChaincodeStubInterfacego 文件中的任何位置。請(qǐng)同時(shí)閱讀此內(nèi)容,https://github.com/IBM-Blockchain/ibm-blockchain-issues/issues/29


查看完整回答
反對(duì) 回復(fù) 2022-04-20
  • 1 回答
  • 0 關(guān)注
  • 128 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)