From 5a22b71313af1bc66d2b406f14b0e2378f915d70 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 27 Feb 2018 17:11:22 -0400 Subject: [PATCH] - Test case to illustrate how the recovery process works --- contracts/identity/Identity.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/identity/Identity.sol b/contracts/identity/Identity.sol index af82fc6..468d83c 100644 --- a/contracts/identity/Identity.sol +++ b/contracts/identity/Identity.sol @@ -63,10 +63,10 @@ contract Identity is ERC725, ERC735 { } function Identity() public { - _addKey(bytes32(msg.sender), MANAGEMENT_KEY, 1); + _addKey(bytes32(msg.sender), MANAGEMENT_KEY, 0); minimumApprovalsByKeyType[MANAGEMENT_KEY] = 1; } - + function addKey( bytes32 _key, uint256 _purpose, @@ -75,7 +75,7 @@ contract Identity is ERC725, ERC735 { public selfOnly returns (bool success) - { + { _addKey(_key, _purpose, _type); return true; }