Skip to content

Vote-On-Ethereum/Contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contract

The voting contract source code in Solidity.

Dependencies

Install

npm install -g truffle
npm install -g ethereumjs-testrpc
npm install

Start the development blockchain

Execute in a separate terminal

testrpc

Note that it gives you a list of accounts with their private key. You may need them.

Test

truffle test ./test/poll.js

Compile

truffle compile

The compiled contract (.json) will be created in ./build/contracts

Deploy

  • Development network
truffle migrate --reset

--reset is usefull to force the contract to deploy

  • Live network (need a sync rpc-enabled node)
truffle migrate --reset --network live

About

The voting contract source code in Solidity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published