additional redundant security check

This commit is contained in:
Ricardo Guilherme Schmidt 2018-03-20 22:29:37 -03:00
parent 8ff63bcbd6
commit 573bd18d4a

View File

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