This is Junaid and I have been working on incorporating ZK SNARKs within a voting application. I am facing some issues regarding the deployment of the contracts.
First I am facing the issue in the 'verifier.sol' file for the switch statement. When I tried to resolve it by replacing the switch statement with if/else statement but then the compiler didn't able to identify the 'call' function and threw error 'Call' function not identified. I am using the solc (solidity compiler) version 0.4.23.
It would be great if anyone would help me in getting this application run properly.
Shouldn't other contracts (like Candidate.sol, Election.sol, Voter.sol, etc) be in the file 2_deploy_contracts.js ? How/when these contracts are deployed to the testnet ?