additional redundant security check

This commit is contained in:
Ricardo Guilherme Schmidt 2018-03-20 22:29:37 -03:00
parent 988ccd1085
commit c09772e634
1 changed files with 1 additions and 0 deletions

View File

@ -419,6 +419,7 @@ contract Identity is ERC725, ERC735 {
function _constructIdentity(address _manager) function _constructIdentity(address _manager)
internal internal
{ {
require(keysByPurpose[MANAGEMENT_KEY].length == 0);
require(minimumApprovalsByKeyPurpose[MANAGEMENT_KEY] == 0); require(minimumApprovalsByKeyPurpose[MANAGEMENT_KEY] == 0);
_addKey(bytes32(_manager), MANAGEMENT_KEY, 0); _addKey(bytes32(_manager), MANAGEMENT_KEY, 0);