-
Notifications
You must be signed in to change notification settings - Fork 12.3k
Improve FV specifications for AccessControlDefaultAdminRules #4223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Hadrien Croubois <[email protected]>
|
|
copy from #4222 (comment) For the I'm going to focus on but the same logic applies to the other checks. First, we need to observer that this rule is in the format This can be rewritten as: One interesting thing to remark here is that, since This means that if we have than the above rule is an immediate consequence. If we look the Now that we know that after a sucessfull call It is now clear that and as a consequence also proves making (this check of) TLDR: the asserts in |
|
copy from #4222 (comment) About Technically, we would want any number of function being called between e1 and e2. Currently the rule only checks:
What we would want to check is that
From the other rules we know that
IMO that is good if on top you add the rules about changing the delay... We are missing the part where |
Co-authored-by: Ernesto García <[email protected]>
ernestognw
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but considering #4230 needs discussion, we'll need to open a PR removing the comment in renounceRoleEffect
|
Updated to reflect the last changes to ACDAR (that how I'm calling AccessControlDefaultAdminRules for short) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment hasn't been solved, but I'm approving to unblock it under the assumption that if we remove the renounceRole it should still work.
EDIT: Answered and solved
Replaces #4222 (change for the FV workflow to run)
Changeset
defaultAdminConsistencyto have a better scope, and make smaller assumptionssingleDefaultAdminto have better coverage / make assumptionspendingValueAndScheduleCouplingrule that is superfluousbeginDefaultAdminTransferandchangeDefaultAdminDelayrules)nonZeroAccount(address)withnonzerosender(env) inhelpers/helpers.spec`max_uint48andmintohelpers/helpers.specrenounceRoleEffectpendingDefaultAdminDelayEnforced(limitations remain, see comment bellow)pendingDelayWaitEnforced(limitations remain, see comment bellow)