Browse Source

Update AccessManaged spec

ernestognw 1 year ago
parent
commit
42bf8c3c74
1 changed files with 2 additions and 1 deletions
  1. 2 1
      certora/specs/AccessManaged.spec

+ 2 - 1
certora/specs/AccessManaged.spec

@@ -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();
 }