Only run FV on new or updated specs (#4195)

This commit is contained in:
Hadrien Croubois
2023-04-28 14:01:41 +02:00
committed by GitHub
parent f959d7e4e6
commit 44d6053b43
3 changed files with 61 additions and 21 deletions

View File

@ -62,10 +62,10 @@ rule onlyCurrentOwnerCanCallOnlyOwner(env e) {
Rule: ownership can only change in specific ways
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
*/
rule onlyOwnerOrPendingOwnerCanChangeOwnership(env e, method f) {
rule onlyOwnerOrPendingOwnerCanChangeOwnership(env e) {
address oldCurrent = owner();
calldataarg args;
method f; calldataarg args;
f(e, args);
address newCurrent = owner();