blockchainvoting's People
blockchainvoting's Issues
Error: Returned error: VM Exception while processing transaction: revert
Resolve this issue
Creating huge console output
Adding Candidate
Complete add candidate function by adding the new candidate to candidates array and verify not duplicates exist in it
Deploying contract
Complete deploying contract function using the initialized web3 and public,private keys
Combined 1,2,6 issues
Fails to get results
I checked on remix and the getResults
fucnction fails as the size of the return arrays is not fixed. I have worked out the fix and can submit pull request now.
Complete constructor
Complete constructor function by assigning admin variable to contract creators address
Inovative solution
Proposing a new way to conduct elections
Propose a new architecture that is secure and fast to conduct elections
Ending the Election
End the election using the ended variable
Only people with right to vote can vote
Store people who has right to vote, and only allow those votes to count.
Procedure and technical details are open to discussion.
Fixed candidates
Candidates are fixed at the time of construction.
Calling the contract
Complete calling the functions using javascript and initialized web3 and public, private keys
Fixed duration of election
Pass duration of election in constructor and no votes should count after the duration.
Not ended modifier
Complete not ended modifier in voting.sol
Make sure to check whether election ended or not using the end boolean variable
Admin modifier
Complete the admin modifier in voting.sol
Make sure if the sender's address is the same as the admin address then allow or else reject the transaction
Voting by users
Complete voting function in voting.sol
Features:
Check whether previously voted or not
Increase vote count of candidate
make this user as voted
Results feature
complete get results function in voting.sol
It should return results in the form of names array and votecounts array
Connect to rinkeby test network using web3
Connect to the rinkeby test network using web3 library and public, private keys
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.