improve recovery call names and lock actions

This commit is contained in:
Ricardo Guilherme Schmidt 2018-05-09 01:48:51 -03:00
parent a154220026
commit 86dd249b26
1 changed files with 5 additions and 3 deletions

View File

@ -283,16 +283,18 @@ contract Identity is ERC725, ERC735, MessageSigned {
// Recovery methods // Recovery methods
//////////////// ////////////////
function managerReset(bytes32 _newKey) function recoveryReset(bytes32 _newKey)
public public
recoveryOnly recoveryOnly
{ {
recoveryManager = _newKey; recoveryManager = _newKey;
_addKey(keccak256(recoveryManager), MANAGEMENT_KEY, 0); _addKey(_newKey, ACTION_KEY, 0);
purposeThreshold[ACTION_KEY] = keysByPurpose[MANAGEMENT_KEY].length;
_addKey(_newKey, MANAGEMENT_KEY, 0);
purposeThreshold[MANAGEMENT_KEY] = keysByPurpose[MANAGEMENT_KEY].length; purposeThreshold[MANAGEMENT_KEY] = keysByPurpose[MANAGEMENT_KEY].length;
} }
function processManagerReset(uint256 _limit) function processRecoveryReset(uint256 _limit)
public public
{ {
require(recoveryManager != 0); require(recoveryManager != 0);