Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
Merge pull request #40 from RedDuck-Software/fix/ac-renounce-role
Browse files Browse the repository at this point in the history
fix: renounceRole override to disable it in mac
  • Loading branch information
kostyamospan authored May 23, 2024
2 parents 0b1644f + 69aa3e2 commit ba1880e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/access/MidasAccessControl.sol
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ contract MidasAccessControl is
}
}

//solhint-disable disable-next-line
function renounceRole(bytes32, address) public override {
revert("MAC: Forbidden");
}

/**
* @dev setup roles during the contracts initialization
*/
Expand Down

0 comments on commit ba1880e

Please sign in to comment.