From 79bad75e54ee3040a134fb23987ae07ce8277dc7 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Sun, 13 May 2018 18:09:20 -0300 Subject: [PATCH] remove `uint256 _purpose` from `getKey` in ERC725 --- contracts/identity/ERC725.sol | 2 +- contracts/identity/Identity.sol | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/contracts/identity/ERC725.sol b/contracts/identity/ERC725.sol index 8f3a9b2..cc0fbf2 100644 --- a/contracts/identity/ERC725.sol +++ b/contracts/identity/ERC725.sol @@ -24,7 +24,7 @@ contract ERC725 { function approve(uint256 _id, bool _approve) public returns (bool success); function addKey(bytes32 _key, uint256 _purpose, uint256 _keyType) public returns (bool success); function removeKey(bytes32 _key, uint256 _purpose) public returns (bool success); - function getKey(bytes32 _key, uint256 _purpose) public view returns(uint256[] purposes, uint256 keyType, bytes32 key); + function getKey(bytes32 _key) public view returns(uint256[] purposes, uint256 keyType, bytes32 key); function getKeyPurpose(bytes32 _key) public view returns(uint256[] purpose); function getKeysByPurpose(uint256 _purpose) public view returns(bytes32[] keys); function keyHasPurpose(bytes32 _key, uint256 purpose) public view returns(bool exists); diff --git a/contracts/identity/Identity.sol b/contracts/identity/Identity.sol index be1e648..14df0f0 100644 --- a/contracts/identity/Identity.sol +++ b/contracts/identity/Identity.sol @@ -412,8 +412,7 @@ contract Identity is ERC725, ERC735, MessageSigned { //////////////// function getKey( - bytes32 _key, - uint256 _purpose + bytes32 _key ) public view