forked from cerc-io/ipld-eth-server
Merge pull request #33 from vulcanize/redsquirrel-patch-2
Minor Solidity suggestion
This commit is contained in:
commit
c5862299e6
@ -26,7 +26,7 @@ contract Contract {
|
|||||||
|
|
||||||
function add_address(address addr) public {
|
function add_address(address addr) public {
|
||||||
bool exists = addresses[addr] > 0;
|
bool exists = addresses[addr] > 0;
|
||||||
addresses[addr] = addresses[addr] + 1;
|
addresses[addr]++;
|
||||||
if (!exists) {
|
if (!exists) {
|
||||||
emit AddressAdded(addr, ++num_addresses);
|
emit AddressAdded(addr, ++num_addresses);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user