Skip to content

Commit

Permalink
Update AccessManaged spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw committed Apr 24, 2024
1 parent 6a100ab commit 42bf8c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion certora/specs/AccessManaged.spec
Expand Up @@ -52,8 +52,9 @@ rule setAuthority(env e) {
setAuthority@withrevert(e, newAuthority);
bool success = !lastReverted;

assert (success && authority() == newAuthority) <=> (
assert success <=> (
previousAuthority == e.msg.sender &&
_hasCode(newAuthority)
);
assert success => newAuthority == authority();
}

0 comments on commit 42bf8c3

Please sign in to comment.