electora-vote / electora-app

Decentralized Voting Application - leveraging the power of zk-proofs, conditions based decryption, and decentralized storage
https://app.electora.eu/
8 stars 2 forks source link

Allow syncing of one or all ballots #79

Closed theref closed 1 year ago

theref commented 1 year ago

To review, push this branch to anvil. Start the app. Your index db should be empty, feel free to create some ballots if you wish.

Add this to end of your url #?ballot_id=5bc87a3cd30becc542c3a39137f4f632 - it's a ballot i created earlier. It should then populate your index db and the title of the ballot is "new test"

Closes #62

meatballs commented 1 year ago

I get an error within an alert - so the app logic is probably ok but I'm not sure what's happening:

ExternalError: Error: call revert exception [ See: https://links.ethers.org/v5-errors-CALL_EXCEPTION ] (method="getBallot(string)", data="0x", errorArgs=null, errorName=null, errorSignature=null, reason=null, code=CALL_EXCEPTION, version=abi/5.7.0) on line 88
what-the-diff[bot] commented 1 year ago

PR Summary