Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Prevent owner address from being whitelisted #60

Merged
merged 3 commits into from
Aug 22, 2018
Merged

Prevent owner address from being whitelisted #60

merged 3 commits into from
Aug 22, 2018

Conversation

nostdm
Copy link
Contributor

@nostdm nostdm commented Aug 22, 2018

Issue #39

@nostdm nostdm requested review from hiddentao, draganm, asmckinlay and i-stam and removed request for hiddentao August 22, 2018 14:12
Copy link
Contributor

@draganm draganm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment, not a show stopper. Missing tests though!

@@ -104,6 +104,7 @@ contract Whitelist is Control {
require(!initializedWhitelist);
// Add each of the provided addresses to the whitelist.
for (uint i = 0; i < _addresses.length; i++) {
require(_addresses[i] != owner);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will probably burn a lot of gas if the last address is owner

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point - fixed with a modifier.

@nostdm nostdm merged commit 5684629 into master Aug 22, 2018
@nostdm nostdm deleted the issue-39 branch August 22, 2018 14:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants