Skip to content

Commit

Permalink
certora: remove authorizer harness
Browse files Browse the repository at this point in the history
  • Loading branch information
facuspagnuolo committed Oct 4, 2023
1 parent f088ec1 commit f35b5f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 41 deletions.
6 changes: 3 additions & 3 deletions packages/authorizer/certora/conf/authorizer.conf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"files": [
"certora/harnesses/AuthorizerHarness.sol",
"contracts/Authorizer.sol",
"certora/helpers/Helpers.sol"
],
"verify": "AuthorizerHarness:certora/specs/Authorizer.spec",
"verify": "Authorizer:certora/specs/Authorizer.spec",
"loop_iter": "3",
"rule_sanity": "basic",
"send_only": true,
Expand All @@ -19,5 +19,5 @@
],
"solc_allow_path": ".",
"process": "emv",
"msg": "AuthorizerHarness"
"msg": "Authorizer"
}
36 changes: 0 additions & 36 deletions packages/authorizer/certora/harnesses/AuthorizerHarness.sol

This file was deleted.

3 changes: 2 additions & 1 deletion packages/authorizer/certora/specs/Authorizer.spec
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ rule grantingPermissionsIsLikeAuthorizing(env e, address who, address where, byt

storage initStorage = lastStorage;

changePermissions(e, where, true, who, what, false, 0, to_bytes4(0));
IAuthorizer.PermissionChange change = buildPermissionChange(where, true, who, what, false, 0, to_bytes4(0));
changePermissions(e, [change]);
storage afterChangePermissions = lastStorage;

authorize(e, who, where, what, params) at initStorage;
Expand Down
2 changes: 1 addition & 1 deletion packages/authorizer/contracts/Authorizer.sol
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ contract Authorizer is IAuthorizer, AuthorizedHelpers, Initializable, Reentrancy
* @dev Executes a list of permission changes. Sender must be authorized.
* @param changes List of permission changes to be executed
*/
function changePermissions(PermissionChange[] memory changes) public override {
function changePermissions(PermissionChange[] memory changes) external override {
for (uint256 i = 0; i < changes.length; i++) {
PermissionChange memory change = changes[i];
for (uint256 j = 0; j < change.grants.length; j++) {
Expand Down

0 comments on commit f35b5f8

Please sign in to comment.