Browse Source

Update AccessManaged spec

ernestognw 1 năm trước cách đây
mục cha
commit
42bf8c3c74
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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();
 }