Merge pull request #33 from vulcanize/redsquirrel-patch-2

Minor Solidity suggestion
This commit is contained in:
Rob Mulholand 2019-03-08 10:56:20 -06:00 committed by GitHub
commit c5862299e6

View File

@ -26,7 +26,7 @@ contract Contract {
function add_address(address addr) public {
bool exists = addresses[addr] > 0;
addresses[addr] = addresses[addr] + 1;
addresses[addr]++;
if (!exists) {
emit AddressAdded(addr, ++num_addresses);
}