IBM / evote

A voting application that leverages Hyperledger Fabric and the IBM Blockchain Platform to record and tally ballots.
https://developer.ibm.com/patterns/how-to-create-a-secure-e-voting-application-on-hyperledger-fabric/
Apache License 2.0
324 stars 165 forks source link

Unable to cast vote #28

Closed joantyry closed 4 years ago

joantyry commented 4 years ago

I did a local installation but I am unable to cast vote. Query all assets gives the following output:

0000 | { "ballotCreated": false, "firstName": "jfgkl", "lastName": "jgfkl", "registrarId": "7890", "type": "voter", "voterId": "0000" }

0001 | { "ballotCreated": false, "firstName": "fghjkl", "lastName": "fghjkl", "registrarId": "56789", "type": "voter", "voterId": "0001" }

horeaporutiu commented 4 years ago

@joantyry

This is likely because the init function was not called.

Go down to Fabric Gateways -> Channels -> mychannel -> voterContract -> init (right click on init) -> submit transaction

Screen Shot 2020-04-03 at 10 13 40 AM
joantyry commented 4 years ago

It worked thanks.