Skip to content

Commit

Permalink
Merge pull request #506 from zama-ai/removeDelegatedRevoke
Browse files Browse the repository at this point in the history
fix: removed ability to revoke reencryption delegation
  • Loading branch information
jatZama authored Sep 17, 2024
2 parents ff22021 + e8c063d commit ea0a61a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/ACL.sol
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ contract ACL is UUPSUpgradeable, Ownable2StepUpgradeable {
}

event NewDelegation(address indexed sender, address indexed delegatee, address indexed contractAddress);
event RevokedDelegation(address indexed sender, address indexed delegatee, address indexed contractAddress);
event AllowedForDecryption(uint256[] handlesList);

function _authorizeUpgrade(address _newImplementation) internal virtual override onlyOwner {}
Expand Down Expand Up @@ -125,13 +124,6 @@ contract ACL is UUPSUpgradeable, Ownable2StepUpgradeable {
emit NewDelegation(msg.sender, delegatee, contractAddress);
}

function removeDelegationForContract(address delegatee, address contractAddress) external virtual {
ACLStorage storage $ = _getACLStorage();
require($.delegates[msg.sender][delegatee][contractAddress], "not delegated yet");
$.delegates[msg.sender][delegatee][contractAddress] = false;
emit RevokedDelegation(msg.sender, delegatee, contractAddress);
}

function allowedOnBehalf(
address delegatee,
uint256 handle,
Expand Down

0 comments on commit ea0a61a

Please sign in to comment.