Full Stack Hello World Voting Ethereum Dapp Tutorial — Part 2
Mahesh Murthy
2.3K150

I’m getting some warnings when migrating, which may require updates to this great post.

$ truffle migrate
Compiling ./contracts/Migrations.sol…
Compiling ./contracts/Voting.sol…
Compilation warnings encountered:
/Users/adam/Development/truffle-voting/contracts/Voting.sol:28:45: Warning: “throw” is deprecated in favour of “revert()”, “require()” and “assert()”.
if (validCandidate(candidate) == false) throw;
^ — -^
,/Users/adam/Development/truffle-voting/contracts/Voting.sol:35:45: Warning: “throw” is deprecated in favour of “revert()”, “require()” and “assert()”.
if (validCandidate(candidate) == false) throw;
^ — -^
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.