In this video we’ll walk through and then deploy a smart contract for enabling electronic voting. The contract will also enable voting delegation. The vote counting is automatic and completely transparent at the same time.
I’ll walk through the entire codebase and explain how everything works, including showing how to create a bytes32 value from a string, and then how to transform a bytes32 back into a string.
Well also change the contract so that it accepts different data types into the constructor and talk about the tradeoffs between each type of data type.