improve recovery call names and lock actions
This commit is contained in:
parent
a154220026
commit
86dd249b26
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue