fix wrong var name

This commit is contained in:
Ricardo Guilherme Schmidt 2018-03-24 05:58:49 -03:00
parent a271b00539
commit 33bb06bd76
1 changed files with 2 additions and 2 deletions

View File

@ -290,12 +290,12 @@ contract Identity is ERC725, ERC735 {
return (myKey.purpose, myKey.keyType, myKey.key);
}
function isKeyPurpose(bytes32 _key, uint256 _type)
function isKeyPurpose(bytes32 _key, uint256 _purpose)
public
constant
returns (bool)
{
return keys[keccak256(_key, _type)].purpose == _type;
return keys[keccak256(_key, _purpose)].purpose == _purpose;
}
function getKeyPurpose(bytes32 _key)