Skip to content

Commit

Permalink
snowflakes can't unclaim their owner
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Zinsmeister committed Aug 13, 2018
1 parent d08399d commit 08f8909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snowflake/contracts/Snowflake.sol
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ contract Snowflake is Ownable {
}

function unclaim(address _address) public _hasToken(msg.sender, true) {
require(_address != directory[addressDirectory[msg.sender]].owner, "Cannot unclaim owner address.");
directory[addressDirectory[msg.sender]].addresses.remove(_address);
delete addressDirectory[_address];
emit AddressUnclaimed(_address, addressDirectory[msg.sender]);
Expand Down

0 comments on commit 08f8909

Please sign in to comment.