IBM-Blockchain-Archive / marbles

WARNING: This repository is no longer maintained ⚠️ This repository will not be updated. The repository will be kept available in read-only mode.
Apache License 2.0
1.02k stars 977 forks source link

Issue compiling the blockchain #134

Closed SBerda closed 7 years ago

SBerda commented 7 years ago

Hi, I'm currently working on the marbles hyperledger project When I want to compile the blockchain with « go build » , I have the following errors :

./read_ledger.go:108: assignment count mismatch: 3 = 2
./read_ledger.go:128: assignment count mismatch: 3 = 2
./read_ledger.go:178: assignment count mismatch: 3 = 2
./read_ledger.go:232: assignment count mismatch: 3 = 2

The file producing the error is located in : https://github.com/IBM-Blockchain/marbles/tree/v3.0/chaincode/src/marbles

The line that making the error is the following : queryKeyAsStr, queryValAsBytes, err := ownersIterator.Next()

I'm having the same issue as this guy on this webpage (at the end): https://github.com/renatoaguimaraes/hyperledger-fabric-chaincode-v1 I have tried to contact him to ask him but i'm waiting his answer..

Do you guys have any idea ?

Thank you

Best regards

Simon

dshuffma-ibm commented 7 years ago

You cannot use the marbles chaincode on the v3.0 branch with fabric v1.0.0. You can however use the experimental branch w/ fabric v1.0.0.

SBerda commented 7 years ago

Thanks, that fixed it :)