initialize first key as manager and action purpose

This commit is contained in:
Ricardo Guilherme Schmidt 2018-04-02 16:26:25 -03:00
parent e76dfe33ab
commit e373ef3885
1 changed files with 1 additions and 0 deletions

View File

@ -440,6 +440,7 @@ contract Identity is ERC725, ERC735 {
require(keysByPurpose[MANAGEMENT_KEY].length == 0); require(keysByPurpose[MANAGEMENT_KEY].length == 0);
require(purposeThreshold[MANAGEMENT_KEY] == 0); require(purposeThreshold[MANAGEMENT_KEY] == 0);
_addKey(bytes32(_manager), MANAGEMENT_KEY, 0); _addKey(bytes32(_manager), MANAGEMENT_KEY, 0);
_addKey(bytes32(_manager), ACTION_KEY, 0);
purposeThreshold[MANAGEMENT_KEY] = 1; purposeThreshold[MANAGEMENT_KEY] = 1;
purposeThreshold[ACTION_KEY] = 1; purposeThreshold[ACTION_KEY] = 1;