initialize first key as manager and action purpose
This commit is contained in:
parent
e76dfe33ab
commit
e373ef3885
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue