-
Install ganache:
- Download from: https://github.com/trufflesuite/ganache/releases
- (for windows:) Download Ganache-2.1.1-win-setup.exe
- Install and run.
- Once ganache GUI is running go to
- setting (setting button) -> CHAIN -> set gas limit 10000000
- setting (setting button) -> ACCOUNTS & KEYS -> set the mnemonic "wine school heavy thought bomb awkward acquire urban bulk aware high true"
- Restart ganache (by pressing the restrat button on top right)
-
Go to https://remix.ethereum.org/
- Load the files.
- For paper 1: Election.sol and CryptoLib.sol
- For paper 2: Ballot.sol
- Set the compiler version to version:0.4.10+commit.f0d539ae.Emscripten.clang
- For paper 1: select the Election.sol file first. Then press the Start to compile button in remix.
- Once the compilation is done, switch to Run tab in remix.
- In the run tab:
- Environment: Web3 Provider
- A pop up will appear, select ok.
- Set Web3 Provider Endpoint: http://localhost:7545 (it will connect remix with ganache)
- Gas limit: set 10000000.
- Then select the Election contract from the drop down option and press deploy.
- (For paper 2) Set "Election Name", 500 during deployment
- Once deployed all the functions of the smart contract will become visible under "Deployed Contracts".
- Environment: Web3 Provider
- Load the files.
-
Notifications
You must be signed in to change notification settings - Fork 0
saoreenrahman/Blockchain-based-E-voting-System
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published