Skip to content

Commit

Permalink
set history for last addrs item to 0x0
Browse files Browse the repository at this point in the history
  • Loading branch information
abramsymons committed Dec 4, 2021
1 parent 8b24515 commit 8731ed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions BrightID.sol
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ contract BrightID is Ownable, IBrightID {
verifications[addrs[i]].isVerified = false;
history[addrs[i - 1]] = addrs[i];
}
history[addrs[i-1]] = address(0);
emit Verified(addrs[0]);
}

Expand Down
1 change: 1 addition & 0 deletions StoppableBrightID.sol
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ contract StoppableBrightID is Ownable, IBrightID {
verifications[addrs[i]].isVerified = false;
history[addrs[i - 1]] = addrs[i];
}
history[addrs[i-1]] = address(0);
emit Verified(addrs[0]);
}

Expand Down

0 comments on commit 8731ed2

Please sign in to comment.