dappuniversity / election

A Decentralized Ethereum Voting Application Tutorial
563 stars 506 forks source link

Porting to solidity v. 0.5.0 #18

Open gigatesseract opened 5 years ago

pathakcodes commented 5 years ago

Nice work !! Your PR helped me lot with V 0.5.0 .Thanks n keep the good work.

gigatesseract commented 5 years ago

Thank you! :) @pathakcodes @gwmccubbin Can you merge/suggest changes in this PR?

camerenisonfire commented 3 years ago

In case someone is running into the same issue I am having of using Solidity ^0.5.0 and getting TypeError that msg.sender is not implicitly convertible to expected type uint256:

You need to wrap msg.sender in unit256(). For example, voters[uint256(msg.sender)] = true;