1 min readJun 1, 2019
Thank you for the great tutorial.
If the migration step ( truffle migrate — network ganache) gives the following error:
“Voting” — invalid bytes32 value (arg=”candidateNames”, coderType=”bytes32", value=”Nick”).
Then
open “migrations/2_deploy_contracts.js” and replace [“Nick”, “Rama”, “Jose”] with [“Nick”, “Rama”, “Jose”].map(x => web3.utils.asciiToHex(x)) (Truffle v5.0.19)
The strings need to be replaced with their hex equivalents.