From c09772e634571926e67e9fcafb49c4b883b88918 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Tue, 20 Mar 2018 22:29:37 -0300 Subject: [PATCH] additional redundant security check --- contracts/identity/Identity.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/identity/Identity.sol b/contracts/identity/Identity.sol index 33334d2..0b6ff3c 100644 --- a/contracts/identity/Identity.sol +++ b/contracts/identity/Identity.sol @@ -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);